summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-03-21 16:30:53 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-03-21 16:30:53 (GMT)
commit47345a794fbe9b390358037169bbdf55feac1c70 (patch)
tree77045d76f4870817084be7c470642dbc07fd884d /Mac/scripts
parent59cdbce9b1bfe9da72b4843e125f1c9cd28bfa75 (diff)
downloadcpython-47345a794fbe9b390358037169bbdf55feac1c70.zip
cpython-47345a794fbe9b390358037169bbdf55feac1c70.tar.gz
cpython-47345a794fbe9b390358037169bbdf55feac1c70.tar.bz2
Generate all the standard OSA suite packages. Has absolute pathname
dependencies all over the place, but this is better than nothing, for now.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/genallsuites.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/Mac/scripts/genallsuites.py b/Mac/scripts/genallsuites.py
new file mode 100644
index 0000000..27ca7c5
--- /dev/null
+++ b/Mac/scripts/genallsuites.py
@@ -0,0 +1,44 @@
+# Generate all the standard scripting suite packages.
+# Note that this module needs *serious* hand-crafting because of all the
+# absolute paths. It is, however, a great leap forward compared to the time
+# when this information was only stored in Jack's brain:-)
+
+import sys
+import os
+import gensuitemodule
+
+DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages"
+
+APPLESCRIPT="/Volumes/Sap/System Folder/Extensions/AppleScript"
+CODEWARRIOR="/Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5"
+EXPLORER="/Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer"
+FINDER="/Volumes/Sap/System Folder/Finder"
+NETSCAPE="/Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2"
+TERMINAL="/Applications/Utilities/Terminal.app/Contents/Resources/Terminal.rsrc"
+
+gensuitemodule.processfile_fromresource(APPLESCRIPT,
+ output=os.path.join(DSTDIR, 'StdSuites'),
+ basepkgname='_builtinSuites',
+ edit_modnames=[])
+gensuitemodule.processfile_fromresource(CODEWARRIOR,
+ output=os.path.join(DSTDIR, 'CodeWarrior'),
+ basepkgname='StdSuites',
+ edit_modnames=[])
+gensuitemodule.processfile_fromresource(EXPLORER,
+ output=os.path.join(DSTDIR, 'Explorer'),
+ basepkgname='StdSuites',
+ edit_modnames=[])
+gensuitemodule.processfile_fromresource(FINDER,
+ output=os.path.join(DSTDIR, 'Finder'),
+ basepkgname='StdSuites',
+ edit_modnames=[])
+gensuitemodule.processfile_fromresource(NETSCAPE,
+ output=os.path.join(DSTDIR, 'Netscape'),
+ basepkgname='StdSuites',
+ edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')])
+gensuitemodule.processfile_fromresource(TERMINAL,
+ output=os.path.join(DSTDIR, 'Terminal'),
+ basepkgname='StdSuites',
+ edit_modnames=[],
+ creatorsignature='trmx')
+ \ No newline at end of file