+2006-05-17 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * config.make.in: add TARGET_PYTHON
+
+ * lily/key-engraver.cc (create_key): use
+ explicitKeySignatureVisibility on cancellation too.
+
+ * lily/font-config.cc (init_fontconfig): only close nonNULL file.
+
+ * scripts/*.py: use TARGET_PYTHON iso PYTHON
+
2006-05-09 Graham Percival <gpermus@gmail.com>
* Documentation/user/tweaking.itely, advanced-notation.itely:
PERL = @PERL@
PLATFORM_WINDOWS = @PLATFORM_WINDOWS@
PYTHON = @PYTHON@
+TARGET_PYTHON = @PYTHON@
RANLIB = @RANLIB@
ROOTSEP = @ROOTSEP@
SHELL = @SHELL@
{
/* inhibit future messages. */
FILE *f = fopen ((char*)cache_file, "w");
- fclose (f);
+ if (f)
+ fclose (f);
}
}
{
SCM visibility = get_property ("explicitKeySignatureVisibility");
item_->set_property ("break-visibility", visibility);
+ if (cancellation_)
+ cancellation_->set_property ("break-visibility", visibility);
}
}
/* doc */ "",
/* create */ "KeySignature",
/* accept */ "key-change-event",
- /* read */ "keySignature printKeyCancellation lastKeySignature "
- "explicitKeySignatureVisibility createKeyOnClefChange "
- "keyAlterationOrder keySignature",
- /* write */ "lastKeySignature tonic keySignature");
+ /* read */
+
+ "createKeyOnClefChange "
+ "explicitKeySignatureVisibility "
+ "keyAlterationOrder "
+ "keySignature "
+ "keySignature "
+ "lastKeySignature "
+ "printKeyCancellation "
+ ,
+
+ /* write */
+ "keySignature "
+ "lastKeySignature "
+ "tonic "
+ );
PERL\
PYTHON\
SHELL\
+ TARGET_PYTHON \
TOPLEVEL_VERSION\
bindir\
datadir\
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
# and customize variables below.
sys.path.insert (0, os.path.join (datadir, 'python'))
-
-
localedir = '@localedir@'
try:
import gettext
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)
-#!@PYTHON@
+#!@TARGET_PYTHON@
# -*- coding: utf-8 -*-
# once upon a rainy monday afternoon.
#
-#!@PYTHON@
+#!@TARGET_PYTHON@
#
# convert-ly.py -- Update old LilyPond input files (fix name?)
#
-#!@PYTHON@
+#!@TARGET_PYTHON@
# info mostly taken from looking at files. See also
# http://lilypond.org/wiki/?EnigmaTransportFormat
-#!@PYTHON@
+#!@TARGET_PYTHON@
'''
Example usage:
-#!@PYTHON@
+#!@TARGET_PYTHON@
#
# msdi2ly.py -- LilyPond midi import script
#
-#!@PYTHON@
+#!@TARGET_PYTHON@
import optparse
import sys