Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 1 | # Generate all the standard scripting suite packages. |
| 2 | # Note that this module needs *serious* hand-crafting because of all the |
| 3 | # absolute paths. It is, however, a great leap forward compared to the time |
| 4 | # when this information was only stored in Jack's brain:-) |
| 5 | |
| 6 | import sys |
| 7 | import os |
| 8 | import gensuitemodule |
| 9 | |
| 10 | DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages" |
| 11 | |
| 12 | APPLESCRIPT="/Volumes/Sap/System Folder/Extensions/AppleScript" |
| 13 | CODEWARRIOR="/Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5" |
| 14 | EXPLORER="/Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer" |
| 15 | FINDER="/Volumes/Sap/System Folder/Finder" |
| 16 | NETSCAPE="/Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2" |
| 17 | TERMINAL="/Applications/Utilities/Terminal.app/Contents/Resources/Terminal.rsrc" |
| 18 | |
| 19 | gensuitemodule.processfile_fromresource(APPLESCRIPT, |
| 20 | output=os.path.join(DSTDIR, 'StdSuites'), |
| 21 | basepkgname='_builtinSuites', |
| 22 | edit_modnames=[]) |
| 23 | gensuitemodule.processfile_fromresource(CODEWARRIOR, |
| 24 | output=os.path.join(DSTDIR, 'CodeWarrior'), |
| 25 | basepkgname='StdSuites', |
| 26 | edit_modnames=[]) |
| 27 | gensuitemodule.processfile_fromresource(EXPLORER, |
| 28 | output=os.path.join(DSTDIR, 'Explorer'), |
| 29 | basepkgname='StdSuites', |
| 30 | edit_modnames=[]) |
| 31 | gensuitemodule.processfile_fromresource(FINDER, |
| 32 | output=os.path.join(DSTDIR, 'Finder'), |
| 33 | basepkgname='StdSuites', |
| 34 | edit_modnames=[]) |
| 35 | gensuitemodule.processfile_fromresource(NETSCAPE, |
| 36 | output=os.path.join(DSTDIR, 'Netscape'), |
| 37 | basepkgname='StdSuites', |
| 38 | edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')]) |
| 39 | gensuitemodule.processfile_fromresource(TERMINAL, |
| 40 | output=os.path.join(DSTDIR, 'Terminal'), |
| 41 | basepkgname='StdSuites', |
| 42 | edit_modnames=[], |
| 43 | creatorsignature='trmx') |
| 44 | |