diff options
author | Just van Rossum <just@letterror.com> | 2003-02-25 21:00:55 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-02-25 21:00:55 (GMT) |
commit | 7215e08846847c24af91d6e41359d2c9f480dfd1 (patch) | |
tree | 1c7e465ce06a6e3546fbbc4723cb937b75083ac0 /Lib/plat-mac/bundlebuilder.py | |
parent | 8a3ed3f81ec5555b08be3e5234a80e36547c450f (diff) | |
download | cpython-7215e08846847c24af91d6e41359d2c9f480dfd1.zip cpython-7215e08846847c24af91d6e41359d2c9f480dfd1.tar.gz cpython-7215e08846847c24af91d6e41359d2c9f480dfd1.tar.bz2 |
- renamed the --copyfile option to --file.
- tweaked the help text a little.
(Jack: up to you to change your client code.)
Diffstat (limited to 'Lib/plat-mac/bundlebuilder.py')
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index b02a4f2..09953e3 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -699,7 +699,8 @@ Options: -b, --builddir=DIR the build directory; defaults to "build" -n, --name=NAME application name -r, --resource=FILE extra file or folder to be copied to Resources - -f, --copyfile=SRC:DST extra file or folder to be copied into the bundle + -f, --file=SRC:DST extra file or folder to be copied into the bundle; + DST must be a path relative to the bundle root -e, --executable=FILE the executable to be used -m, --mainprogram=FILE the Python main program -a, --argv add a wrapper main program to create sys.argv @@ -732,7 +733,7 @@ def main(builder=None): builder = AppBuilder(verbosity=1) shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa" - longopts = ("builddir=", "name=", "resource=", "copyfile=", "executable=", + longopts = ("builddir=", "name=", "resource=", "file=", "executable=", "mainprogram=", "creator=", "nib=", "plist=", "link", "link-exec", "help", "verbose", "quiet", "argv", "standalone", "exclude=", "include=", "package=", "strip", "iconfile=") @@ -749,10 +750,11 @@ def main(builder=None): builder.name = arg elif opt in ('-r', '--resource'): builder.resources.append(arg) - elif opt in ('-f', '--copyfile'): + elif opt in ('-f', '--file'): srcdst = arg.split(':') if len(srcdst) != 2: - usage() + usage("-f or --file argument must be an absolute path and " + "a relative path, separated by a colon") builder.files.append(srcdst) elif opt in ('-e', '--executable'): builder.executable = arg |