From: hjunes Date: Wed, 3 Sep 2003 14:33:07 +0000 (+0000) Subject: take filename (also) from an arg. X-Git-Tag: release/1.9.5~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=512ee781b9100dc2f346936072468f845021d55d;p=lilypond.git take filename (also) from an arg. --- 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 [