From a58f81de0df9665826de6993a0f4b81d8ee6b090 Mon Sep 17 00:00:00 2001 From: hanwen Date: Sat, 25 Feb 2006 00:20:51 +0000 Subject: [PATCH] * scripts/lilypond-book.py (main): write Makefile dependencies file. * GNUmakefile.in (footifymail): use gmane address for webpage bug address. --- ChangeLog | 7 +++++++ GNUmakefile.in | 4 +++- scripts/lilypond-book.py | 16 ++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ae5096e8d..447ed2037e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-25 Han-Wen Nienhuys + + * scripts/lilypond-book.py (main): write Makefile dependencies file. + + * GNUmakefile.in (footifymail): use gmane address for webpage bug + address. + 2006-02-23 Graham Percival * Documentation/user/ tutorial, global: minor changes. diff --git a/GNUmakefile.in b/GNUmakefile.in index e95d6ba99f..5f28601d9f 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -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. diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 9a4df3c6da..7b9d357fbb 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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 () -- 2.39.5