CVSROOT: /cvsroot/lilypond
Module name: lilypond
Branch:
Changes by: Jan Nieuwenhuizen <[EMAIL PROTECTED]> 05/04/19 18:36:52
Modified files:
scripts : convert-ly.py
. : ChangeLog
Log message:
Fix error message.
Print usage if no files on command line.
(usage): Add example usage.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/scripts/convert-ly.py.diff?tr1=1.238&tr2=1.239&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.3477&tr2=1.3478&r1=text&r2=text
Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.3477 lilypond/ChangeLog:1.3478
--- lilypond/ChangeLog:1.3477 Tue Apr 19 17:18:10 2005
+++ lilypond/ChangeLog Tue Apr 19 18:36:52 2005
@@ -1,5 +1,9 @@
2005-04-19 Jan Nieuwenhuizen <[EMAIL PROTECTED]>
+ * scripts/convert-ly.py: Fix error message.
+ Print usage if no files on command line.
+ (usage): Add example usage.
+
* input/test/compound-time.ly: New file.
* input/test/circle.ly: New file.
Index: lilypond/scripts/convert-ly.py
diff -u lilypond/scripts/convert-ly.py:1.238
lilypond/scripts/convert-ly.py:1.239
--- lilypond/scripts/convert-ly.py:1.238 Tue Apr 19 17:29:12 2005
+++ lilypond/scripts/convert-ly.py Tue Apr 19 18:36:51 2005
@@ -65,6 +65,12 @@
-t, --to=VERSION convert to VERSION [default: @[EMAIL PROTECTED]
-v, --version print program version"""))
sys.stdout.write ('\n\n')
+ sys.stdout.write (_ ('Examples'))
+ sys.stdout.write ('\n')
+ sys.stdout.write (' convert-ly -e *ly')
+ sys.stdout.write ('\n')
+ sys.stdout.write (' convert-ly --from=2.4.0 -e $(find . -name "*ly")')
+ sys.stdout.write ('\n\n')
sys.stdout.write (_ ("Report bugs to %s.") % "[email protected]")
sys.stdout.write ('\n')
sys.exit (0)
@@ -2137,11 +2143,14 @@
def conv (str):
if re.search ('textheight', str):
sys.stderr.write ('\n')
- sys.stderr.write (NOT_SMART % "tuning of textheight")
+ sys.stderr.write (NOT_SMART % "textheight")
sys.stderr.write ('\n')
sys.stderr.write (UPDATE_MANUALLY)
sys.stderr.write ('\n')
-
+ sys.stderr.write (
+"""Page layout has been changed, using paper size and margins.
+textheight is no longer used.
+""")
str = re.sub (r'\\OrchestralScoreContext', '\\Score', str)
def func(m):
if m.group(1) not in ['RemoveEmptyStaff',
@@ -2619,6 +2628,11 @@
sys.exit (0)
identify ()
+
+if not files:
+ usage ()
+ sys.exit (2)
+
for f in files:
if f == '-':
f = ''
_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs