Skip to content

Commit

Permalink
make mkrelease generate new templated project pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Feb 8, 2009
1 parent 9414b77 commit 4adf745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkrelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source /etc/init.d/functions.sh

PROJECT=$(sed -n '2{p;q;}' README.rst)
PROJECT=$(sed -n '2{p;q;}' README.rst|tr '[A-Z]' '[a-z]')
VERSION=$(sed 's/^:Version: \(.*\)/\1/;t;d' README.rst)

HTDOCS=~/public_html/projects/${PROJECT}
Expand All @@ -11,7 +11,7 @@ DISTTAR=${HTDOCS}/dist/${PROJECT}-${VERSION}.tar.bz2
mkdir -p ${HTDOCS}/dist

ebegin "Generating project page"
rst2html.py < README.rst > ${HTDOCS}/index.html
~/work/rst2html.py ~/public_html/template.html < README.rst > ${HTDOCS}/index.html
eend $?

if [[ -e ${DISTTAR} ]]; then
Expand Down

0 comments on commit 4adf745

Please sign in to comment.