[Python-checkins] python/dist/src/Lib/plat-mac bundlebuilder.py,1.10,1.11
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 24 Feb 2003 08:27:13 -0800
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv30806
Modified Files:
bundlebuilder.py
Log Message:
Added a -c (--copyfile) option with argument src:dst which copies file src
into dst in the bundle. The Python API already had this functionality
Index: bundlebuilder.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/bundlebuilder.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** bundlebuilder.py 18 Feb 2003 23:29:46 -0000 1.10
--- bundlebuilder.py 24 Feb 2003 16:27:08 -0000 1.11
***************
*** 649,652 ****
--- 649,653 ----
-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
-e, --executable=FILE the executable to be used
-m, --mainprogram=FILE the Python main program
***************
*** 680,685 ****
builder = AppBuilder(verbosity=1)
! shortopts = "b:n:r:e:m:c:p:lx:i:hvqa"
! longopts = ("builddir=", "name=", "resource=", "executable=",
"mainprogram=", "creator=", "nib=", "plist=", "link",
"link-exec", "help", "verbose", "quiet", "argv", "standalone",
--- 681,686 ----
builder = AppBuilder(verbosity=1)
! shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa"
! longopts = ("builddir=", "name=", "resource=", "copyfile=", "executable=",
"mainprogram=", "creator=", "nib=", "plist=", "link",
"link-exec", "help", "verbose", "quiet", "argv", "standalone",
***************
*** 698,701 ****
--- 699,707 ----
elif opt in ('-r', '--resource'):
builder.resources.append(arg)
+ elif opt in ('-f', '--copyfile'):
+ srcdst = arg.split(':')
+ if len(srcdst) != 2:
+ usage()
+ builder.files.append(srcdst)
elif opt in ('-e', '--executable'):
builder.executable = arg