Clone in a terminal:
Commit f7b8b77
Johan Mattsson - 2012-12-21T13:42:54+00:00
f7b8b77990c854717e176264a6d5bf2c9f885a3ejohan.mattsson.m@gmail.com

install function

Changed files (1)

Diff

diff --git a/install b/installindex 43aaa79..6f93f72 100755--- a/install+++ b/install@@ -3,6 +3,12 @@ import os import subprocess from optparse import OptionParser +def install (file, dir):+	print ("install: " + dest + prefix + dir + '/' + file)+	subprocess.check_output ('install -d ' + dest + prefix + dir, shell=True)+	subprocess.check_output ('install ' + file + ' ' + dest + prefix + dir + '/', shell=True)++ if not os.path.exists ("build/configured"): 	print ("Project is not configured") 	exit (1)@@ -22,29 +28,16 @@ if not options.dest: prefix = options.prefix dest = options.dest -subprocess.check_output ('install -d ' + dest + prefix + '/share/birdfont/layout', shell=True) for file in os.listdir('./layout'):-	subprocess.check_output ('install layout/' + file + ' ' + dest + prefix + '/share/birdfont/layout/', shell=True)+	install ('./layout/' + file, '/share/birdfont/layout') -subprocess.check_output ('install -d ' + dest + prefix + '/share/birdfont/icons', shell=True) for file in os.listdir('./icons'):-	subprocess.check_output ('install icons/' + file + ' ' + dest + prefix + '/share/birdfont/icons/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/share/applications/', shell=True)-subprocess.check_output ('install linux/birdfont.desktop ' + dest + prefix + '/share/applications/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/share/icons/hicolor/48x48/apps/', shell=True)-subprocess.check_output ('install linux/birdfont.png ' + dest + prefix + '/share/icons/hicolor/48x48/apps/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/bin/', shell=True)-subprocess.check_output ('install build/birdfont ' + dest + prefix + '/bin/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/bin/', shell=True)-subprocess.check_output ('install build/birdfont-export ' + dest + prefix + '/bin/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/lib/', shell=True)-subprocess.check_output ('install build/libbirdfont.so ' + dest + prefix + '/lib/', shell=True)--subprocess.check_output ('install -d ' + dest + prefix + '/share/man/man1/', shell=True)-subprocess.check_output ('install build/birdfont.1.gz ' + dest + prefix + '/share/man/man1/', shell=True)-subprocess.check_output ('install build/birdfont-export.1.gz ' + dest + prefix + '/share/man/man1/', shell=True)+	install ('./icons/' + file, '/share/birdfont/icons')++install ('linux/birdfont.desktop', '/share/birdfont/applications')+install ('linux/birdfont.png', '/share/icons/hicolor/48x48/apps')+install ('build/birdfont', '/bin')+install ('build/birdfont-export', '/bin')+install ('build/libbirdfont.so', '/lib')+install ('build/birdfont.1.gz', '/share/man/man1')+install ('build/birdfont-export.1.gz', '/share/man/man1')

Contact

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