From: Jan Nieuwenhuizen Date: Tue, 25 Dec 2001 12:49:55 +0000 (+0100) Subject: patch::: 1.5.27.jcn1 X-Git-Tag: release/1.5.28~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2f8402b1d8fa65c683ac081071061029a4ee0866;p=lilypond.git patch::: 1.5.27.jcn1 2001-12-25 Jan Nieuwenhuizen * make/lilypond-vars.make: * scripts/ly2dvi.py (setup_environment): * scripts/lilypond-book.py (setup_environment): Also set tex memory options. --- diff --git a/ChangeLog b/ChangeLog index ded1e51b59..bd5350712c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-12-25 Jan Nieuwenhuizen + + * make/lilypond-vars.make: + * scripts/ly2dvi.py (setup_environment): + * scripts/lilypond-book.py (setup_environment): Also set tex + memory options. + 2001-12-24 Han-Wen Nienhuys * VERSION: 1.5.27 released. diff --git a/VERSION b/VERSION index c939db38f5..02970366cd 100644 --- a/VERSION +++ b/VERSION @@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=5 PATCH_LEVEL=27 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=jcn1 # use the above to send patches: MY_PATCH_LEVEL is always empty for a # released version. diff --git a/make/lilypond-vars.make b/make/lilypond-vars.make index 0eff08a3db..09ce0f1518 100644 --- a/make/lilypond-vars.make +++ b/make/lilypond-vars.make @@ -8,6 +8,10 @@ export MFINPUTS:=$(topdir)/mf/:$(MFINPUTS):: export TEXINPUTS:=$(topdir)/mf/out/:$(topdir)/tex/:$(topdir)/ps/:$(TEXINPUTS):$(pwd):: export LILYINCLUDE:=$(topdir)/ps:$(topdir)/scm:$(topdir)/ly:$(topdir)/mf/out::$(TEX_TFMDIR):$(LILYINCLUDE) export TFMFONTS:=$(topdir)/mf/out: +export extra_mem_top=1000000 +export extra_mem_bottom=1000000 +export pool_size=250000 + ifdef DEB_BUILD export PKFONTS := $(topdir)/mf/out diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 4e431b030f..fb3e5df785 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -51,13 +51,22 @@ program_version = '@TOPLEVEL_VERSION@' if program_version == '@' + 'TOPLEVEL_VERSION' + '@': program_version = '1.5.18' -# +# if set, LILYPONDPREFIX must take prevalence +# if datadir is not set, we're doing a build and LILYPONDPREFIX +datadir = '@datadir@' + +if os.environ.has_key ('LILYPONDPREFIX') : + datadir = os.environ['LILYPONDPREFIX'] +else: + datadir = '@datadir@' + +while datadir[-1] == os.sep: + datadir= datadir[:-1] + # Try to cater for bad installations of LilyPond, that have # broken TeX setup. Just hope this doesn't hurt good TeX # setups. Maybe we should check if kpsewhich can find # feta16.{afm,mf,tex,tfm}, and only set env upon failure. -# -datadir = '@datadir@' environment = { 'MFINPUTS' : datadir + '/mf:', 'TEXINPUTS': datadir + '/tex:' + datadir + '/ps:.:', @@ -66,6 +75,13 @@ environment = { 'GS_LIB' : datadir + '/ps', } +# tex needs lots of memory, more than it gets by default on Debian +non_path_environment = { + 'extra_mem_top' : '1000000', + 'extra_mem_bottom' : '1000000', + 'pool_size' : '250000', +} + def setup_environment (): for key in environment.keys (): val = environment[key] @@ -73,7 +89,10 @@ def setup_environment (): val = val + os.pathsep + os.environ[key] os.environ[key] = val - + for key in non_path_environment.keys (): + val = non_path_environment[key] + print '%s=%s' % (key,val) + os.environ[key] = val include_path = [os.getcwd()] diff --git a/scripts/ly2dvi.py b/scripts/ly2dvi.py index 62d6bbf561..90fa4d6032 100644 --- a/scripts/ly2dvi.py +++ b/scripts/ly2dvi.py @@ -264,8 +264,6 @@ datadir = '@datadir@' if os.environ.has_key ('LILYPONDPREFIX') : -# huh ? this always leads to exception. -# or '@datadir@' == '@' + 'datadir' + '@': datadir = os.environ['LILYPONDPREFIX'] else: datadir = '@datadir@' @@ -376,6 +374,12 @@ environment = { 'GS_LIB' : datadir + '/ps', } +# tex needs lots of memory, more than it gets by default on Debian +non_path_environment = { + 'extra_mem_top' : '1000000', + 'extra_mem_bottom' : '1000000', + 'pool_size' : '250000', +} def setup_environment (): for key in environment.keys (): @@ -384,6 +388,10 @@ def setup_environment (): val = os.environ[key] + os.pathsep + val os.environ[key] = val + for key in non_path_environment.keys (): + val = non_path_environment[key] + os.environ[key] = val + #what a name. def set_setting (dict, key, val): try: