| 1 | n/a | # Generate all the standard scripting suite packages. |
|---|
| 2 | n/a | # Note that this module needs *serious* hand-crafting because of all the |
|---|
| 3 | n/a | # absolute paths. It is, however, a great leap forward compared to the time |
|---|
| 4 | n/a | # when this information was only stored in Jack's brain:-) |
|---|
| 5 | n/a | |
|---|
| 6 | n/a | import sys |
|---|
| 7 | n/a | import os |
|---|
| 8 | n/a | import gensuitemodule |
|---|
| 9 | n/a | |
|---|
| 10 | n/a | verbose=sys.stdout |
|---|
| 11 | n/a | |
|---|
| 12 | n/a | DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages" |
|---|
| 13 | n/a | OS9DISK="/Volumes/Moes" |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript" |
|---|
| 16 | n/a | SYSTEMEVENTS="/System/Library/CoreServices/System Events.app" |
|---|
| 17 | n/a | |
|---|
| 18 | n/a | CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6" |
|---|
| 19 | n/a | EXPLORER="/Applications/Internet Explorer.app" |
|---|
| 20 | n/a | FINDER="/System/Library/CoreServices/Finder.app" |
|---|
| 21 | n/a | NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2" |
|---|
| 22 | n/a | TERMINAL="/Applications/Utilities/Terminal.app" |
|---|
| 23 | n/a | |
|---|
| 24 | n/a | gensuitemodule.processfile_fromresource(APPLESCRIPT, |
|---|
| 25 | n/a | output=os.path.join(DSTDIR, 'StdSuites'), |
|---|
| 26 | n/a | basepkgname='_builtinSuites', |
|---|
| 27 | n/a | edit_modnames=[], verbose=verbose) |
|---|
| 28 | n/a | gensuitemodule.processfile(SYSTEMEVENTS, |
|---|
| 29 | n/a | output=os.path.join(DSTDIR, 'SystemEvents'), |
|---|
| 30 | n/a | basepkgname='StdSuites', |
|---|
| 31 | n/a | edit_modnames=[('Disk_2d_Folder_2d_File_Suite', 'Disk_Folder_File_Suite')], |
|---|
| 32 | n/a | verbose=verbose) |
|---|
| 33 | n/a | gensuitemodule.processfile(CODEWARRIOR, |
|---|
| 34 | n/a | output=os.path.join(DSTDIR, 'CodeWarrior'), |
|---|
| 35 | n/a | basepkgname='StdSuites', |
|---|
| 36 | n/a | edit_modnames=[], verbose=verbose) |
|---|
| 37 | n/a | gensuitemodule.processfile(EXPLORER, |
|---|
| 38 | n/a | output=os.path.join(DSTDIR, 'Explorer'), |
|---|
| 39 | n/a | basepkgname='StdSuites', |
|---|
| 40 | n/a | edit_modnames=[], verbose=verbose) |
|---|
| 41 | n/a | gensuitemodule.processfile(FINDER, |
|---|
| 42 | n/a | output=os.path.join(DSTDIR, 'Finder'), |
|---|
| 43 | n/a | basepkgname='StdSuites', |
|---|
| 44 | n/a | edit_modnames=[], verbose=verbose) |
|---|
| 45 | n/a | gensuitemodule.processfile(NETSCAPE, |
|---|
| 46 | n/a | output=os.path.join(DSTDIR, 'Netscape'), |
|---|
| 47 | n/a | basepkgname='StdSuites', |
|---|
| 48 | n/a | edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')], verbose=verbose) |
|---|
| 49 | n/a | gensuitemodule.processfile(TERMINAL, |
|---|
| 50 | n/a | output=os.path.join(DSTDIR, 'Terminal'), |
|---|
| 51 | n/a | basepkgname='StdSuites', |
|---|
| 52 | n/a | edit_modnames=[], verbose=verbose) |
|---|