summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-24 16:28:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-24 16:28:37 (GMT)
commitaf1d4225b83b3b663e820e85b5609fc0793b07fb (patch)
treea0de35033e754240e4989544933634385f20cb6f /Mac/scripts
parent00cbf07ca714ec562bbf46be06c46f46381e3282 (diff)
downloadcpython-af1d4225b83b3b663e820e85b5609fc0793b07fb.zip
cpython-af1d4225b83b3b663e820e85b5609fc0793b07fb.tar.gz
cpython-af1d4225b83b3b663e820e85b5609fc0793b07fb.tar.bz2
Allow specifiying the destination for --extra files (default: same
filename as the source, but in Contents/Resources in the app bundle).
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/BuildApplet.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py
index 52a7d0f..64a3d5e 100644
--- a/Mac/scripts/BuildApplet.py
+++ b/Mac/scripts/BuildApplet.py
@@ -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()
@@ -99,12 +101,12 @@ def usage():
print " BuildApplet src1.py src2.py ... non-interactive multiple file"
print " BuildApplet [options] src.py non-interactive single file"
print "Options:"
- 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 " --verbose Verbose, short -v"
- print " --help This message, short -?"
+ 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 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)
class Verbose: