]> git.donarmstrong.com Git - lilypond.git/commitdiff
(do_file): make wiki link optional.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 5 Mar 2005 17:10:35 +0000 (17:10 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 5 Mar 2005 17:10:35 +0000 (17:10 +0000)
ChangeLog
stepmake/bin/add-html-footer.py

index ef59cebfa2ac193ade8bf81752a5d8ae34008308..82a9991aa93d6314a056d59d89005d16aa8716c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-05  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * stepmake/bin/add-html-footer.py (do_file): make wiki link optional.
+
+       * lily/pdf.cc: remove PDF related files
+
 2005-03-04  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * ly/deutsch.ly: add quarter tones, patch by Arno Waschk.
index 14e2c764620152ab8e9bcf4283d84e6e16dfd153..3946a737809bdf77b1c2c45f00d688d79277c24c 100644 (file)
@@ -35,7 +35,8 @@ default_header = r"""
 """
 
 
-wiki_base = 'http://afavant.elte.hu/lywiki/'
+#wiki_base = 'http://afavant.elte.hu/lywiki/'
+wiki_base = None 
 
 
 default_footer = r"""<hr>Please take me <a href=@INDEX@>back to the index</a>
@@ -44,8 +45,7 @@ of @PACKAGE_NAME@
 
 built = r"""
 <div style="background-color: #e8ffe8; padding: 2; border: #c0ffc0 1px solid;">
-<a href="%(wiki_base)s%(wiki_page)s">Read </a> comments on this page, or
-<a href="%(wiki_base)s%(wiki_page)s?action=edit">add</a> one.
+%(wiki_string)s
 <p>
 <font size="-1">
 This page is for %(package_name)s-%(package_version)s (%(branch_str)s). <br>
@@ -254,6 +254,14 @@ def do_file (f):
        wiki_page = re.sub (r'\.-', '', wiki_page) 
        wiki_page = re.sub ('.html', '', wiki_page)
 
+       wiki_string = ''
+
+       if wiki_base:
+               wiki_string = (r'''<a href="%(wiki_base)s%(wiki_page)s">Read </a> comments on this page, or
+               <a href="%(wiki_base)s%(wiki_page)s?action=edit">add</a> one.''' % 
+                              { 'wiki_base': wiki_base,
+                                'wiki_page': wiki_page})
+               
        subst = globals ()
        subst.update (locals())
        s = s % subst