2003-09-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * scripts/lilypond.py (global_latex_preamble): only set
+ twosideshift if 'twoside' is in latexoptions
+
* stepmake/GNUmakefile.in: remove nested stepmake packaging stuff.
* VERSION: remove
+\version "1.9.5"
+
\header {
texidoc = "Test igatzek inversion and bass notes.
}
\score {
-< \context ChordNames \bladidbla
- \context Voice \bladidbla >
+<< \context ChordNames \bladidbla
+ \context Voice \bladidbla >>
}
LY_DEFINE(ly_version, "ly:version", 0, 0, 0, (),
"Return the current lilypond version as a list, e.g. @code{(1 3 127 uu1)}. ")
{
- char const* vs = "\' (" MAJOR_VERSION " " MINOR_VERSION " " PATCH_LEVEL " " MY_PATCH_LEVEL ")" ;
+ char const* vs = "\'(" MAJOR_VERSION " " MINOR_VERSION " " PATCH_LEVEL " " MY_PATCH_LEVEL ")" ;
return gh_eval_str ((char*)vs);
}
linewidth = '%d%s' % (maxlw, unit)
s = s + '\geometry{width=%s%s,headheight=2mm,footskip=2mm,%s}\n' % (linewidth, textheight, orientation)
- if extra['latexoptions']:
+
+ if extra['latexoptions'] \
+ and string.find (extra['latexoptions'], 'twoside') >= 0:
s = s + '\geometry{twosideshift=4mm}\n'
s = s + r'''
import getopt
-vf = 'VERSION'
-if sys.argv[1:]:
- vf = sys.argv[1]
-
-f = open (vf)
-ls = f.readlines ()
mypatch = 0
defs = []
-for a in sys.argv[1:]
- m = re.search ('([^ =]*)=([^ \t]*)[ \t]*\n', a)
+for a in sys.argv[1:]:
+ m = re.search ('([^ =]+)=([^ \t]*)', a)
if m:
defs.append ((m.group(1), m.group(2)))
sys.stdout.write ('#define %s "%s"\n' % d)
-
if ('MY_PATCH_LEVEL', '') in defs:
sys.stdout.write ('#define NO_MY_PATCHLEVEL')
$(PYTHON) $(step-bindir)/make-version.py PACKAGE_NAME=$(PACKAGE_NAME) \
MAJOR_VERSION=$(MAJOR_VERSION) \
MINOR_VERSION=$(MINOR_VERSION) \
- MY_PATCH_LEVEL=$(MY_PATCH_LEVEL) \
PATCH_LEVEL=$(PATCH_LEVEL) \
+ MY_PATCH_LEVEL=$(MY_PATCH_LEVEL) \
> $@
$(outdir)/config.h: $(config_h)