2006-05-17 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * python/lilylib.py (system): move import subprocess to system()
+ definition. Backportme.
+
+ * python/convertrules.py (conv): fix convert-ly rules for 2.9.4
+
* VERSION (PATCH_LEVEL): release 2.9.5
* Documentation/topdocs/INSTALL.texi (Top): update versions and
def conv (str):
- str = re.sub ('page-penalty', 'page-break-penalty')
- str = re.sub ('([^-])penalty', '\1break-penalty')
+ str = re.sub ('page-penalty', 'page-break-penalty', str)
+ str = re.sub ('([^-])penalty', '\1break-penalty', str)
return str
conversions.append (((2, 9, 4), conv, """(page-)penalty -> (page-)break-penalty"""))
#
# source file of the GNU LilyPond music typesetter
#
-# (c) 1998--2006 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+# (c) 1998--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
# Jan Nieuwenhuizen <janneke@gnu.org>
import __main__
import string
import sys
import optparse
-import subprocess
-
-## windows mingw cross compile doesn't have selectmodule.so
-have_fcntl = True
-try:
- import fcntl
-except ImportError:
- have_fcntl = False
################################################################
# Users of python modules should include this snippet
return os.path.basename (cmd)
def system (cmd,
- ignore_error=False,
- progress_p=True,
- be_verbose=False,
- log_file=None):
+ ignore_error=False,
+ progress_p=True,
+ be_verbose=False,
+ log_file=None):
+
+ import subprocess
show_progress= progress_p
name = command_name (cmd)
for (k,v) in os.environ.items ():
sys.stderr.write ("%s=\"%s\"\n" % (k, v))
-
class NonDentedHeadingFormatter (optparse.IndentedHelpFormatter):
def format_heading(self, heading):
if heading:
source file of the GNU LilyPond music typesetter
- (c) 2001--2006 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2001--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
Jan Nieuwenhuizen <janneke@gnu.org>
*/