blob: 602f3c53071cca520ddc336b206b2add69cfedfe [file] [log] [blame]
Jack Jansen47345a72003-03-21 16:30:53 +00001# 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
6import sys
7import os
8import gensuitemodule
9
10DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages"
Jack Jansen0fc192a2003-03-29 00:11:32 +000011OS9DISK="/Volumes/Moes"
Jack Jansen47345a72003-03-21 16:30:53 +000012
Jack Jansen0fc192a2003-03-29 00:11:32 +000013APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript"
14SYSTEMEVENTS="/System/Library/CoreServices/System Events.app"
15
16CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6"
17EXPLORER="/Applications/Internet Explorer.app"
18FINDER="/System/Library/CoreServices/Finder.app"
19NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2"
20TERMINAL="/Applications/Utilities/Terminal.app"
Jack Jansen47345a72003-03-21 16:30:53 +000021
22gensuitemodule.processfile_fromresource(APPLESCRIPT,
23 output=os.path.join(DSTDIR, 'StdSuites'),
24 basepkgname='_builtinSuites',
25 edit_modnames=[])
Jack Jansen0fc192a2003-03-29 00:11:32 +000026gensuitemodule.processfile(SYSTEMEVENTS,
27 output=os.path.join(DSTDIR, 'SystemEvents'),
28 basepkgname='StdSuites',
29 edit_modnames=[])
30gensuitemodule.processfile(CODEWARRIOR,
Jack Jansen47345a72003-03-21 16:30:53 +000031 output=os.path.join(DSTDIR, 'CodeWarrior'),
32 basepkgname='StdSuites',
33 edit_modnames=[])
Jack Jansen0fc192a2003-03-29 00:11:32 +000034gensuitemodule.processfile(EXPLORER,
Jack Jansen47345a72003-03-21 16:30:53 +000035 output=os.path.join(DSTDIR, 'Explorer'),
36 basepkgname='StdSuites',
37 edit_modnames=[])
Jack Jansen0fc192a2003-03-29 00:11:32 +000038gensuitemodule.processfile(FINDER,
Jack Jansen47345a72003-03-21 16:30:53 +000039 output=os.path.join(DSTDIR, 'Finder'),
40 basepkgname='StdSuites',
41 edit_modnames=[])
Jack Jansen0fc192a2003-03-29 00:11:32 +000042gensuitemodule.processfile(NETSCAPE,
Jack Jansen47345a72003-03-21 16:30:53 +000043 output=os.path.join(DSTDIR, 'Netscape'),
44 basepkgname='StdSuites',
45 edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')])
Jack Jansen0fc192a2003-03-29 00:11:32 +000046gensuitemodule.processfile(TERMINAL,
Jack Jansen47345a72003-03-21 16:30:53 +000047 output=os.path.join(DSTDIR, 'Terminal'),
48 basepkgname='StdSuites',
Jack Jansen0fc192a2003-03-29 00:11:32 +000049 edit_modnames=[])
Jack Jansen47345a72003-03-21 16:30:53 +000050