From af1d4225b83b3b663e820e85b5609fc0793b07fb Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 24 Feb 2003 16:28:37 +0000 Subject: Allow specifiying the destination for --extra files (default: same filename as the source, but in Contents/Resources in the app bundle). --- Mac/scripts/BuildApplet.py | 14 ++++++++------ 1 file 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: -- cgit v0.12