X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fetf2ly.py;h=171f5b226cc48c444e255633b4feba086d6fcc67;hb=10845c628c111c6afcf4eb39c3960ee552b95ab9;hp=c9f23aa6770740ff9496a0edcff5b8cfa83bf18f;hpb=a6a4b3fc2009f17a1a48cca0c11bfd3f38645937;p=lilypond.git
diff --git a/scripts/etf2ly.py b/scripts/etf2ly.py
index c9f23aa677..171f5b226c 100644
--- a/scripts/etf2ly.py
+++ b/scripts/etf2ly.py
@@ -1,5 +1,20 @@
#!@TARGET_PYTHON@
+# This file is part of LilyPond, the GNU music typesetter.
+#
+# LilyPond is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# LilyPond is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with LilyPond. If not, see .
+
# info mostly taken from looking at files. See also
# http://lilypond.org/wiki/?EnigmaTransportFormat
@@ -34,6 +49,9 @@ import os
program_name = sys.argv[0]
+authors = ('Jan Nieuwenhuizen ',
+ 'Han-Wen Nienhuys ')
+
version = '@TOPLEVEL_VERSION@'
if version == '@' + 'TOPLEVEL_VERSION' + '@':
version = '(unknown version)' # uGUHGUHGHGUGH
@@ -558,7 +576,7 @@ class Staff:
last_time = g.timesig
if 'start' in g.repeats:
- e = e + ' \\bar "|:" '
+ e = e + ' \\bar ".|:" '
# we don't attempt voltas since they fail easily.
@@ -590,7 +608,7 @@ class Staff:
if g:
gap = rat_add (gap, g.length ())
if 'stop' in g.repeats:
- k = k + ' \\bar ":|" '
+ k = k + ' \\bar ":|." '
k = '%sglobal = { %s }\n\n ' % (self.staffid (), k)
return k
@@ -1113,11 +1131,13 @@ class Etf_file:
while c and c.number <> endno:
- thread.append (c)
+ d = c # hack to avoid problem with build/scripts/grand-replace.py
+ thread.append (d)
c = c.next
if c:
- thread.append (c)
+ d = c # hack to avoid problem with build/scripts/grand-replace.py
+ thread.append (d)
return thread
@@ -1162,18 +1182,16 @@ def identify():
def warranty ():
identify ()
sys.stdout.write ('''
-Copyright (c) %s by
+%s
- Han-Wen Nienhuys
- Jan Nieuwenhuizen
+ %s
%s
%s
-''' % ( '2001--2006',
- _('Distributed under terms of the GNU General Public License.'),
- _('It comes with NO WARRANTY.')))
-
-
+''' % ( _ ('Copyright (c) %s by') % '2001--2014',
+ '\n '.join (authors),
+ _ ('Distributed under terms of the GNU General Public License.'),
+ _ ('It comes with NO WARRANTY.')))
def get_option_parser ():
p = ly.get_option_parser (usage=_ ("%s [OPTION]... ETF-FILE") % 'etf2ly',