Allow specifiying the destination for --extra files (default: same

filename as the source, but in Contents/Resources in the app bundle).
This commit is contained in:
Jack Jansen 2003-02-24 16:28:37 +00:00
parent 00cbf07ca7
commit af1d4225b8
1 changed files with 8 additions and 6 deletions

View File

@ -75,6 +75,8 @@ def buildapplet():
elif opt in ('-n', '--noargv'):
raw = 1
elif opt in ('-e', '--extra'):
if ':' in arg:
arg = arg.split(':')
extras.append(arg)
elif opt in ('-v', '--verbose'):
verbose = Verbose()
@ -102,7 +104,7 @@ def usage():
print " --output o Output file; default based on source filename, short -o"
print " --resource r Resource file; default based on source filename, short -r"
print " --noargv Build applet without drag-and-drop sys.argv emulation, short -n, OSX only"
print " --extra f Extra file to put in .app bundle, short -e, OSX only"
print " --extra src[:dst] Extra file to put in .app bundle, short -e, OSX only"
print " --verbose Verbose, short -v"
print " --help This message, short -?"
sys.exit(1)