Commit 19400fd
install icons and translations on mac
Changed files (3)
Diff
@@ -3,4 +3,5 @@ Johan Mattsson Alexandre Prokoudine Eduardo Schettino Zhantong Zhang+Clemens Lang @@ -54,6 +54,9 @@ def build (prefix, cc, cflags, ldflags): run("touch build/installed") run("touch build/configured") + compile_translations ()+ + def build_app (): # application launcher run("mkdir -p build/BirdFont.app")@@ -3,6 +3,7 @@ import os import subprocess import glob from optparse import OptionParser+from translations import compile_translations def install (file, dir): if dest == "":@@ -39,6 +40,16 @@ install ('build/bin/birdfont', '/bin') install ('build/bin/birdfont-export', '/bin') install ('build/bin/libbirdfont.dylib', '/lib') +for file in os.listdir('./layout'):+ install ('layout/' + file, '/share/birdfont/layout')++for file in os.listdir('./icons'):+ install ('icons/' + file, '/share/birdfont/icons')+ +for lang_dir in glob.glob('build/locale/*'):+ lc = lang_dir.replace ('build/locale/', "")+ install ('build/locale/' + lc + '/LC_MESSAGES/birdfont.mo', '/share/locale/' + lc + '/LC_MESSAGES' );+ # install application launcher if options.app: subprocess.check_call ('mkdir -p ' + dest + '/Applications/', shell=True)