X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fbuilder.py;h=06f9f413b712dc8896dd7a5cb9bce54eda1dba50;hb=57a8804c3e6a3589294fc9a2da6cdbb8a6be78e6;hp=b59962e76c4da4b8153ce7272e07a4fa9a18f235;hpb=c2a179d36b7ddb95ee6140ac1e31eddcc052cbe6;p=lilypond.git diff --git a/buildscripts/builder.py b/buildscripts/builder.py index b59962e76c..06f9f413b7 100644 --- a/buildscripts/builder.py +++ b/buildscripts/builder.py @@ -164,9 +164,9 @@ def add_tfm_target (target, source, env): base = os.path.splitext (str (target[0]))[0] return (target + [base + '.tfm'], source) -def add_lisp_enc_tex_ly_target (target, source, env): +def add_lisp_enc_target (target, source, env): base = os.path.splitext (str (target[0]))[0] - return (target + [base + '.lisp', base + '.enc', base + '.tex'], + return (target + [base + '.lisp', base + '.enc'], source) def add_cff_cffps_svg (target, source, env): @@ -188,10 +188,9 @@ a = '$PYTHON $MF_TO_TABLE_PY \ --global-lisp=${TARGET.base}.otf-gtable \ --lisp=${TARGET.base}.lisp \ --enc=${TARGET.base}.enc \ ---tex=${TARGET.base}.tex \ ${TARGET.base}.log' gtable = Builder (action = a, suffix = '.otf-gtable', src_suffix = '.log', - emitter = add_lisp_enc_tex_ly_target) + emitter = add_lisp_enc_target) env.Append (BUILDERS = {'GTABLE': gtable}) def add_enc_src (target, source, env): @@ -278,21 +277,6 @@ def at_copy (target, source, env): AT_COPY = Builder (action = at_copy, src_suffix = ['.in', '.py', '.sh',]) env.Append (BUILDERS = {'AT_COPY': AT_COPY}) -def at_copy_ext (target, source, env): - n = str (source[0]) - s = open (n).read () - for i in atvars: - if env.has_key (i): - s = string.replace (s, '@%s@'% i, env[i]) - # whugh - e = os.path.splitext (n)[1] - t = str (target[0]) + e - open (t, 'w').write (s) - -AT_COPY_EXT = Builder (action = at_copy_ext, src_suffix = ['.py', '.sh',]) -env.Append (BUILDERS = {'AT_COPY_EXT': AT_COPY_EXT}) - - MO = Builder (action = 'msgfmt -o $TARGET $SOURCE', suffix = '.mo', src_suffix = '.po') env.Append (BUILDERS = {'MO': MO})