Clone in a terminal:
Commit f384599
Johan Mattsson - 2013-03-01T14:38:55+00:00
f38459932c5dc57bc3b17aca8cf129c219571db2johan.mattsson.m@gmail.com

birdfont.app

Changed files (2)

Diff

diff --git a/scripts/macport_build.py b/scripts/macport_build.pyindex b1c21c5..035fa0a 100755--- a/scripts/macport_build.py+++ b/scripts/macport_build.py@@ -6,16 +6,10 @@ import subprocess import sys from optparse import OptionParser from translations import compile_translations+from run import run  import configfile -def run(cmd):-	process = subprocess.Popen (cmd, shell=True)-	process.communicate()[0]-	if not process.returncode == 0:-		print("Error: " + cmd)-		exit(1)- def build(prefix, cc, cflags, ldflags): 	compile_translations () 	diff --git a/scripts/macport_install.py b/scripts/macport_install.pyindex e0a6607..3bdd3d8 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 run import run  def install (file, dir): 	if dest == "":@@ -22,6 +23,7 @@ def install (file, dir): parser = OptionParser() parser.add_option ("-p", "--prefix", dest="prefix", help="install prefix", metavar="PREFIX") parser.add_option ("-d", "--dest", dest="dest", help="install to this directory", metavar="DEST")+parser.add_option ("-a", "--app", dest="app", help="install application launcher in this directory", metavar="APP")  (options, args) = parser.parse_args() @@ -31,6 +33,9 @@ if not options.prefix: if not options.dest: 	options.dest = "" +if not options.app:+	options.app = "/Applications"+ prefix = options.prefix dest = options.dest @@ -47,3 +52,5 @@ for file in os.listdir('./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' );++run ("cp -R -p build/BirdFont.app " + options.app)\ No newline at end of file

Contact

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