#### web
web_base = os.path.join (outdir, 'web')
web_ball = os.path.join (web_base, '.tar.gz')
-env['footify'] = 'MAILADDRESS=bug-lilypond@gnu.org $PYTHON stepmake/bin/add-html-footer.py --name=lilypond --version=$version'
+env['footify'] = 'MAILADDRESS=bug-lilypond@gnu.org $PYTHON stepmake/bin/add-html-footer.py --name=lilypond --version=$TOPLEVEL_VERSION'
env['web_ext'] = ['.html', '.ly', '.midi', '.pdf', '.png', '.ps.gz', '.txt',]
# compatible make heritits
# fixme: generate in $outdir is cwd/builddir
env.Command (web_ball, 'doc',
['$PYTHON buildscripts/mutopia-index.py -o examples.html ./',
- 'cd $absbuild && $footify $$ (find . -name "*.html" -print)',
+ 'cd $absbuild && $footify $$(find . -name "*.html" -print)',
# uhg?
'cd $absbuild && rm -f $$(find . -name "*.html~" -print)',
'cd $absbuild && find Documentation input \
-path foo $web_path -false \
- > $outdir/weblist',
+ > $out/weblist',
'''echo '<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $absbuild/index.html''',
'''echo '<html><body>Redirecting to the documentation index...</body></html>' >> $absbuild/index.html''',
# UGHR? all .html cruft in cwd goes into the web ball?
- 'cd $absbuild && ls *.html >> $outdir/weblist',
- 'cat $outdir/weblist | (cd $absbuild; \
+ 'cd $absbuild && ls *.html >> $out/weblist',
+ 'cat $out/weblist | (cd $absbuild; \
GZIP=-9v tar -czf $web_ball -T -)',])
env.Alias ('web', web_ball)