#!@PYTHON@
-#
+# -*-python-*-
# make-website.py -- implement The lilypond WWW site
#
# source file of the GNU LilyPond music typesetter
depth = ''
makewebsite_id = "<!make_website!>";
-id_str = "make-website 0.8";
+id_str = "make-website 0.9";
tar = "tar";
-make = "make -f OLD-Makefile";
+make = "make -f Makefile";
mailaddress = "unknown"
fullname = "unknown"
footstr = ""
__main__.lilyversion = version_tuple_to_str(lilydirs.version_tuple())
os.environ["TEXINPUTS"] = os.environ["TEXINPUTS"] + ":%s/input/:" % depth;
- os.environ["LILYINCLUDE"] = join (':', __main__.include_path)
+ os.environ["LILYINCLUDE"] = join (':', __main__.include_path) +':'+ os.environ["LILYINCLUDE"];
os.environ["LILYTOP"] = depth;
__main__.mailaddress= os.environ['MAILADDRESS']
pw = pwd.getpwuid (os.getuid());
ret = os.system (cmd)
if ret:
if ignoreret:
- sys.stderr.write( "ignoring failed command \`%s\' (status %d)\n" % (cmd, ret))
+ sys.stderr.write( "ignoring failed command `%s\' (status %d)\n" % (cmd, ret))
else:
sys.stderr.write( 'make-website: failed on command %s (status %d)\n' % (cmd, ret))
sys.exit (2)
def gen_html():
print 'generating HTML'
- my_system (["make -f OLD-Makefile -kC .. html"]);
+ my_system (["make -f Makefile -kC .. html"]);
def gen_examples(inputs):
banner= open('/tmp/lilybanner.html', 'w');
banner.write (footstr('../index.html'))
banner.close ()
- my_system(['BANNEROPT=\"-B /tmp/lilybanner.html\" %s/bin/out/make-docxx' % depth]);
+ my_system(['BANNEROPT=\"-B /tmp/lilybanner.html\" %s/bin/make-docxx' % depth]);
# os.unlink( "/tmp/lilybanner.html");
def get_glob(exts):
print 'This is %s\n' % id_str
def clean_tmp():
- my_system(['rm -f /tmp/gs*'])
+ my_system(['-rm -f /tmp/gs*'])
def get_top_of_NEWS():
i = open('NEWS.txt')
def main():
identify();
- os.chdir (lilydirs.topdir + 'Documentation/out')
+ os.chdir (lilydirs.topdir + 'WWW')
+
+ my_system (['-rm ../WWW/*.pod ../WWW/*.xpm ../WWW/*.doc',
+ 'ln ../Documentation/*.pod ../Documentation/*.doc ../Documentation/*.xpm .']);
+ os.chdir (lilydirs.topdir + 'WWW/out')
__main__.depth = "../../";
__main__.include_path = map(lambda p: __main__.depth + '/' +
p, __main__.include_path)