+2005-05-06 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * mf/GNUmakefile (MFTRACE_FLAGS):
+ * buildscripts/substitute-encoding.py (outdir): Build fix: pass
+ outdir as option (WAS: hardcoded).
+
2005-05-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
* THANKS: add Hans Forbrich.
#
# http://bugs.ghostscript.com/show_bug.cgi?id=688017
+import getopt
+import os
+import re
import string
import sys
-import re
-import os
-filename = sys.argv[1]
+outdir = 'out'
+(options, files) = getopt.getopt (sys.argv[1:], 'o', ['outdir='])
+for opt in options:
+ o = opt[0]
+ a = opt[1]
+ if o == '--outdir' or o == '-o':
+ outdir = a
+
+filename = files[0]
def get_glyph_names (enc_name):
enc_str = open (enc_name).read ()
glyphs = []
return glyphs
if re.search ('mmental', filename):
- glyph_names = (get_glyph_names ('out/feta20.enc') +
- get_glyph_names ('out/feta-alphabet20.enc') +
- get_glyph_names ('out/parmesan20.enc'))
+ glyph_names = (get_glyph_names ('%(outdir)s/feta20.enc' % vars ())
+ + get_glyph_names ('%(outdir)s/feta-alphabet20.enc' % vars ())
+ + get_glyph_names ('%(outdir)s/parmesan20.enc' % vars ()))
str = open (filename).read ()
os.rename (filename, filename + "~")
str)
open (filename, 'w').write (str)
-
-
-
$(outdir)/$(PFA_PREFIX)%.pfa $(outdir)/%.otf $(outdir)/%.svg: $(outdir)/%.pe
(cd $(outdir) && $(FONTFORGE) -script $(notdir $<))
- $(PYTHON) $(buildscript-dir)/substitute-encoding.py $@
+ $(PYTHON) $(buildscript-dir)/substitute-encoding.py --outdir=$(outdir) $@
-rm $(outdir)/*.scale.pfa
# ugh, this does not work