]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.54
authorfred <fred>
Sun, 24 Mar 2002 20:09:19 +0000 (20:09 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:09:19 +0000 (20:09 +0000)
bin/mf-deps.in
mf/Makefile.am.wild

index 3483cfc9e97a7881953109e51c0300db1e0db5f9..b259b59748cb5e37c2699737e9db038b52f71320 100644 (file)
@@ -1,4 +1,5 @@
 #!@PYTHON@
+# -*- python -*-
 
 # 
 # mf-deps.py -- dependencies for metafont 
 
 """
 
+import sys
+import os
+
+lilypath =''
+try:
+       lilypath = os.environ['LILYPOND_SOURCEDIR'] + '/'
+except KeyError:
+       try:
+               lilypath = os.environ['top_srcdir'] + '/'
+       except KeyError:
+           print 'Please set LILYPOND_SOURCEDIR to the toplevel source, eg LILYPOND_SOURCEDIR=/home/foobar/lilypond-1.2.3/'
+
+           sys.exit(1)
+
+lilypath = lilypath + '/bin/'
+sys.path.append(lilypath)
 from regex import * ;
 from regsub import * ;
 import sys;
index aa7ff51dff8b7c2e51a3858fe9a30398dee70b09..f2b25ae4f4bfaa5e5c06b97c5523c60162274070 100644 (file)
@@ -22,6 +22,7 @@ texout = $(top_builddir)/tex
 LYTABLES = $(addprefix $(lyout)/, $(FET_FILES:.mf=.ly))
 TEXTABLES = $(addprefix $(texout)/, $(FET_FILES:.mf=.tex))
 
+export top_srcdir
 
 all-local: $(LYTABLES) $(TEXTABLES)