blob: 884d4a49123722f05e1325b419265a5083850387 [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
Jack Jansend6abf5d2003-04-29 21:46:31 +000010verbose=sys.stdout
11
Jack Jansen47345a72003-03-21 16:30:53 +000012DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages"
Jack Jansen0fc192a2003-03-29 00:11:32 +000013OS9DISK="/Volumes/Moes"
Jack Jansen47345a72003-03-21 16:30:53 +000014
Jack Jansen0fc192a2003-03-29 00:11:32 +000015APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript"
16SYSTEMEVENTS="/System/Library/CoreServices/System Events.app"
17
18CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6"
19EXPLORER="/Applications/Internet Explorer.app"
20FINDER="/System/Library/CoreServices/Finder.app"
21NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2"
22TERMINAL="/Applications/Utilities/Terminal.app"
Jack Jansen47345a72003-03-21 16:30:53 +000023
24gensuitemodule.processfile_fromresource(APPLESCRIPT,
25 output=os.path.join(DSTDIR, 'StdSuites'),
26 basepkgname='_builtinSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000027 edit_modnames=[], verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000028gensuitemodule.processfile(SYSTEMEVENTS,
29 output=os.path.join(DSTDIR, 'SystemEvents'),
30 basepkgname='StdSuites',
Jack Jansen40006e92003-05-01 22:06:15 +000031 edit_modnames=[('Disk_2d_Folder_2d_File_Suite', 'Disk_Folder_File_Suite')],
32 verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000033gensuitemodule.processfile(CODEWARRIOR,
Jack Jansen47345a72003-03-21 16:30:53 +000034 output=os.path.join(DSTDIR, 'CodeWarrior'),
35 basepkgname='StdSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000036 edit_modnames=[], verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000037gensuitemodule.processfile(EXPLORER,
Jack Jansen47345a72003-03-21 16:30:53 +000038 output=os.path.join(DSTDIR, 'Explorer'),
39 basepkgname='StdSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000040 edit_modnames=[], verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000041gensuitemodule.processfile(FINDER,
Jack Jansen47345a72003-03-21 16:30:53 +000042 output=os.path.join(DSTDIR, 'Finder'),
43 basepkgname='StdSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000044 edit_modnames=[], verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000045gensuitemodule.processfile(NETSCAPE,
Jack Jansen47345a72003-03-21 16:30:53 +000046 output=os.path.join(DSTDIR, 'Netscape'),
47 basepkgname='StdSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000048 edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')], verbose=verbose)
Jack Jansen0fc192a2003-03-29 00:11:32 +000049gensuitemodule.processfile(TERMINAL,
Jack Jansen47345a72003-03-21 16:30:53 +000050 output=os.path.join(DSTDIR, 'Terminal'),
51 basepkgname='StdSuites',
Jack Jansend6abf5d2003-04-29 21:46:31 +000052 edit_modnames=[], verbose=verbose)
Jack Jansen47345a72003-03-21 16:30:53 +000053