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