summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2005-04-19 18:36:52 +0000
committerJan Nieuwenhuizen <janneke@gnu.org>2005-04-19 18:36:52 +0000
commit5eedf005834d8d3fdc64aee2554a9936c3ef1f57 (patch)
treec3dd2f66df6eabbc0a57240d9be1068df3ea6113 /scripts
parentb6b534b0ecb377336015e7b6b873c66fe9cf710e (diff)
Fix error message.
Print usage if no files on command line. (usage): Add example usage.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/convert-ly.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py
index 7226d9daff..8a99c282c0 100644
--- a/scripts/convert-ly.py
+++ b/scripts/convert-ly.py
@@ -65,6 +65,12 @@ version taken from the \\version command, to the current LilyPond version."""))
-t, --to=VERSION convert to VERSION [default: @TOPLEVEL_VERSION@]
-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.") % "bug-lilypond@gnu.org")
sys.stdout.write ('\n')
sys.exit (0)
@@ -2137,11 +2143,14 @@ conversions.append (((2, 3, 1), conv,
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 @@ if show_rules_p:
sys.exit (0)
identify ()
+
+if not files:
+ usage ()
+ sys.exit (2)
+
for f in files:
if f == '-':
f = ''