]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.5.28
authorfred <fred>
Wed, 27 Mar 2002 02:04:56 +0000 (02:04 +0000)
committerfred <fred>
Wed, 27 Mar 2002 02:04:56 +0000 (02:04 +0000)
make/lilypond-vars.make
scripts/lilypond-book.py
scripts/ly2dvi.py
stepmake/stepmake/generic-targets.make

index 0eff08a3db61dbda7d1d846b285add7d50168e3a..09ce0f151853084630b6fc3d88cddc7e0f896949 100644 (file)
@@ -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
index 4e431b030fd3897c2914897e81767e8b5e0726df..fb3e5df785af012665f862afd260d07a0c379441 100644 (file)
@@ -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()]
 
index 62d6bbf561428beb9ec4ba9c5474bea527399846..90fa4d603224e176692bbd6ba457bc767f8b9d25 100644 (file)
@@ -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:
index 5c7d038bf4b35175f76ede04878cc09bd708d321..1348328f1f9b097132dd3d3b53de85b979e6b0f5 100644 (file)
@@ -163,6 +163,6 @@ release:
 rpm: $(depth)/$(package-icon) dist
        @echo "Assuming Red Hat system" #FIXME: check distro, then issue rpm
        $(MAKE) -C $(depth)/make
-       cd $(depth) && rmp -bb make/$(outdir)/lilypond.redhat.spec
+       cd $(depth) && rpm -bb make/$(outdir)/lilypond.redhat.spec
 #      su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'