From 6c4ef7fddc01ac56649a47774906ac2a2e492fdd Mon Sep 17 00:00:00 2001 From: Heikki Junes Date: Wed, 3 Sep 2003 14:33:07 +0000 Subject: [PATCH] take filename (also) from an arg. --- ChangeLog | 4 ++++ buildscripts/lilypond.words.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e98e9a449b..153bf3964a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-09-03 Heikki Junes + + * buildscripts/lilypond.words.py: take filename (also) from an arg. + 2003-09-02 Han-Wen Nienhuys * Documentation/topdocs/README.texi (Top): clarifications. diff --git a/buildscripts/lilypond.words.py b/buildscripts/lilypond.words.py index 86e3ecc818..338b65d523 100755 --- a/buildscripts/lilypond.words.py +++ b/buildscripts/lilypond.words.py @@ -5,6 +5,7 @@ import string import re +import sys outlines = [] prekw = '\\\\' @@ -91,7 +92,10 @@ for name in [ F.close() # the output file -out = open('lilypond.words', 'w') +if sys.argv[1:] == []: + out = open('lilypond.words', 'w') +else: + out = open(sys.argv[1], 'w') # the menu in lilypond-mode.el for line in [ -- 2.39.5