]> git.donarmstrong.com Git - lilypond.git/commitdiff
take filename (also) from an arg.
authorHeikki Junes <heikki.junes@hut.fi>
Wed, 3 Sep 2003 14:33:07 +0000 (14:33 +0000)
committerHeikki Junes <heikki.junes@hut.fi>
Wed, 3 Sep 2003 14:33:07 +0000 (14:33 +0000)
ChangeLog
buildscripts/lilypond.words.py

index e98e9a449b6719f11a74a019b117f931dab50614..153bf3964a30542cb3c36b6bd4c89fb86f1985b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-03  Heikki Junes  <hjunes@cc.hut.fi>
+
+       * buildscripts/lilypond.words.py: take filename (also) from an arg.
+
 2003-09-02  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * Documentation/topdocs/README.texi (Top): clarifications.
index 86e3ecc818b3fe3d5a917955c5320673112d338d..338b65d523c26992c4e2dd1824c326838c3129fe 100755 (executable)
@@ -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 [