Clone in a terminal:
Commit 19400fd
Johan Mattsson - 2013-02-27T00:29:17+00:00
19400fd1211594c82ec29edef10897857de34827johan.mattsson.m@gmail.com

install icons and translations on mac

Changed files (3)

Diff

diff --git a/AUTHORS b/AUTHORSindex bacf830..2332635 100644--- a/AUTHORS+++ b/AUTHORS@@ -3,4 +3,5 @@ Johan Mattsson Alexandre Prokoudine Eduardo Schettino Zhantong Zhang+Clemens Lang diff --git a/scripts/macport_build.py b/scripts/macport_build.pyindex 9d2f833..af45f8f 100755--- a/scripts/macport_build.py+++ b/scripts/macport_build.py@@ -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")diff --git a/scripts/macport_install.py b/scripts/macport_install.pyindex efb0186..77a483c 100755--- a/scripts/macport_install.py+++ b/scripts/macport_install.py@@ -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)

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112