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" |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 11 | OS9DISK="/Volumes/Moes" |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 12 | |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 13 | APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript" |
| 14 | SYSTEMEVENTS="/System/Library/CoreServices/System Events.app" |
| 15 | |
| 16 | CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6" |
| 17 | EXPLORER="/Applications/Internet Explorer.app" |
| 18 | FINDER="/System/Library/CoreServices/Finder.app" |
| 19 | NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2" |
| 20 | TERMINAL="/Applications/Utilities/Terminal.app" |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 21 | |
| 22 | gensuitemodule.processfile_fromresource(APPLESCRIPT, |
| 23 | output=os.path.join(DSTDIR, 'StdSuites'), |
| 24 | basepkgname='_builtinSuites', |
| 25 | edit_modnames=[]) |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 26 | gensuitemodule.processfile(SYSTEMEVENTS, |
| 27 | output=os.path.join(DSTDIR, 'SystemEvents'), |
| 28 | basepkgname='StdSuites', |
| 29 | edit_modnames=[]) |
| 30 | gensuitemodule.processfile(CODEWARRIOR, |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 31 | output=os.path.join(DSTDIR, 'CodeWarrior'), |
| 32 | basepkgname='StdSuites', |
| 33 | edit_modnames=[]) |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 34 | gensuitemodule.processfile(EXPLORER, |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 35 | output=os.path.join(DSTDIR, 'Explorer'), |
| 36 | basepkgname='StdSuites', |
| 37 | edit_modnames=[]) |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 38 | gensuitemodule.processfile(FINDER, |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 39 | output=os.path.join(DSTDIR, 'Finder'), |
| 40 | basepkgname='StdSuites', |
| 41 | edit_modnames=[]) |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 42 | gensuitemodule.processfile(NETSCAPE, |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 43 | output=os.path.join(DSTDIR, 'Netscape'), |
| 44 | basepkgname='StdSuites', |
| 45 | edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')]) |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 46 | gensuitemodule.processfile(TERMINAL, |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 47 | output=os.path.join(DSTDIR, 'Terminal'), |
| 48 | basepkgname='StdSuites', |
Jack Jansen | 0fc192a | 2003-03-29 00:11:32 +0000 | [diff] [blame^] | 49 | edit_modnames=[]) |
Jack Jansen | 47345a7 | 2003-03-21 16:30:53 +0000 | [diff] [blame] | 50 | |