9
Usage: ingest.py bundle [-x lib] [-s fw]
11
Copies all dependent libraries and frameworks into the app bundle.
12
System libraries (/usr/lib*, /System/Library) are not copied.
13
Fixes the dependencies in all executabels contained in bundle.
15
bundle: the path to the *.app bundle
16
-x lib: dont move lib into the bundle.
17
-s fw: only move the referenced libarry file from framework fw
18
into the bundle, not the complete framework
22
if len(sys.argv) <= 1 or sys.argv[1] == "-?" :
34
while argp < len(sys.argv) :
35
if sys.argv[argp] == '-x' :
36
exceptions.append(sys.argv[argp + 1])
38
elif sys.argv[argp][0:2] == '-x' :
39
exceptions.append(sys.argv[argp][2:])
41
elif sys.argv[argp] == '-s' :
42
strippedfws.append(sys.argv[argp + 1])
44
elif sys.argv[argp][0:2] == '-s' :
45
strippedfws.append(sys.argv[argp][2:])
47
elif sys.argv[argp][0:1] == '-' :
48
print "Error: unknown option: " + sys.argv[argp]
52
bundle = sys.argv[argp]
55
print "Error: more than one bundle path specified!"
60
print "Error: no bundle path specified!"
64
if not os.path.isabs(bundle):
65
bundle = os.path.join(os.getenv("PWD"), bundle)
67
if not os.path.isdir(bundle):
68
print "Error: '" + bundle + "' is no bundle path!"
72
osxtools.ingest(bundle, exceptions, strippedfws)