]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/lilypond-book.py (main): write Makefile dependencies file.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 25 Feb 2006 00:20:51 +0000 (00:20 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 25 Feb 2006 00:20:51 +0000 (00:20 +0000)
* GNUmakefile.in (footifymail): use gmane address for webpage bug
address.

ChangeLog
GNUmakefile.in
scripts/lilypond-book.py

index 3ae5096e8d9edc6f35b311f60d78d9aad4fd3dab..447ed2037e393a366e5690505c203d26277c9fe5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scripts/lilypond-book.py (main): write Makefile dependencies file. 
+
+       * GNUmakefile.in (footifymail): use gmane address for webpage bug
+       address.
+
 2006-02-23  Graham Percival  <gpermus@gmail.com>
 
        * Documentation/user/ tutorial, global: minor changes.
index e95d6ba99f2bfca2e260ff400a871c495186b93f..5f28601d9f6205c54fac9ef0bcbade0cbab1b348 100644 (file)
@@ -60,7 +60,9 @@ final-install:
 web-ext = html midi pdf png txt ly
 
 footify = $(PYTHON) $(step-bindir)/add-html-footer.py  --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
-footifymail = MAILADDRESS=bug-lilypond@gnu.org
+footifymail = MAILADDRESS='http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs'
+
+
 
 local-WWW-post:
 # need UTF8 setting in case this is hosted on a website. 
index 9a4df3c6da1ead99c31b000c5ce25d4e9f347da8..7b9d357fbbe8e2557b822fb2e0dc4426de5a030f 100644 (file)
@@ -1464,6 +1464,10 @@ def write_if_updated (file_name, lines):
        open (file_name, 'w').writelines (lines)
        ly.progress ('\n')
 
+def note_input_file (name, inputs=[]):
+       inputs.append (name)
+       return inputs
+
 def do_file (input_filename):
        # Ugh.
        if not input_filename or input_filename == '-':
@@ -1478,6 +1482,8 @@ def do_file (input_filename):
                                                       + input_filename)[:-1]
                else:
                        input_fullname = find_file (input_filename)
+
+               note_input_file (input_fullname)
                in_handle = open (input_fullname)
 
        if input_filename == '-':
@@ -1687,5 +1693,15 @@ def main ():
                ly.progress ("    dvips -h %(psfonts_file)s %(output)s" % vars ())
                ly.progress ('\n')
 
+       inputs = note_input_file ('')
+       inputs.pop ()
+       dep_file = os.path.join (output_name, os.path.splitext (file)[0] + '.dep')
+       final_output_file = os.path.join (output_name,
+                                         os.path.splitext (os.path.basename (file))[0]
+                                         + '.%s' % format)
+       
+       os.chdir (original_dir)
+       open (dep_file, 'w').write ('%s: %s' % (final_output_file, ' '.join (inputs)))
+
 if __name__ == '__main__':
        main ()