Changeset 4917 for trunk/tools/DailyBuild
- Timestamp:
- Jan 10, 2001, 2:50:48 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/DailyBuild/odin32pack.cmd
r4903 r4917 1 /* $Id: odin32pack.cmd,v 1. 9 2001-01-09 18:46:28 bird Exp $1 /* $Id: odin32pack.cmd,v 1.10 2001-01-10 13:50:48 bird Exp $ 2 2 * 3 3 * Make the two zip files. … … 15 15 * Make .WPI files. 16 16 */ 17 call ChDir 'tools\install';17 /* call ChDir 'tools\install'; 18 18 'call odin.cmd debug' 19 19 if (RC <> 0) then call failure rc, 'odin.cmd debug failed.'; … … 23 23 if (RC <> 0) then call failure rc, 'failed to move the *.wpi ->' sStartDir; 24 24 call ChDir '..\..'; 25 25 */ 26 26 27 27 /* 28 28 * Make .ZIP files. 29 29 */ 30 call ChDir 'bin'; 31 call packdir 'debug', 'debug' 32 call packdir3dx 'debug', 'debug' 33 call packdir 'release', 'release' 34 call packdir3dx 'release', 'release' 35 call ChDir '..'; 30 call packdir 'bin\debug', 'debug' 31 call packdir3dx 'bin\debug\glide', 'glide-debug' 32 call packdir 'bin\release', 'release' 33 call packdir3dx 'bin\release\glide', 'glide-release' 36 34 37 35 /* return successfully */ … … 42 40 parse arg sDir, sType; 43 41 44 sZipFile = filespec('path', directory())||'odin32bin-' || DATE(S) || '-' || sType || '.zip';42 sZipFile = directory() || '\odin32bin-' || DATE(S) || '-' || sType || '.zip'; 45 43 46 44 /* 47 45 * Change into the directory we're to pack and do some fixups 48 46 */ 47 sRoot = directory(); 49 48 call ChDir sDir 50 49 'del /Q /Y /Z *.cmd > nul 2>&1' … … 69 68 70 69 /* Copy root files into the pack directory. */ 71 call copy '..\wgss50.dll', 'system32\wgss50.dll'; 72 call copy '..\odin.ini' 73 call copy '..\..\doc\odin.ini.txt' 74 call copy '..\..\LICENSE.txt'; 75 call copy '..\..\ChangeLog'; 76 call copy '..\..\doc\Readme.txt'; 77 call copy '..\..\doc\Logging.txt'; 78 call copy '..\..\doc\ReportingBugs.txt'; 79 call copy '..\..\doc\ChangeLog-2000'; 80 call copy '..\..\doc\ChangeLog-1999'; 70 call copy sRoot'\bin\odin.ini' 71 call copy sRoot'\doc\odin.ini.txt' 72 call copy sRoot'\LICENSE.txt'; 73 call copy sRoot'\ChangeLog'; 74 call copy sRoot'\doc\Readme.txt'; 75 call copy sRoot'\doc\Logging.txt'; 76 call copy sRoot'\doc\ReportingBugs.txt'; 77 call copy sRoot'\doc\ChangeLog-2000'; 78 call copy sRoot'\doc\ChangeLog-1999'; 81 79 82 80 /* … … 84 82 * and pack it. 85 83 */ 86 'ren ..\'||sDir '.\system32'84 'ren' sRoot'\'sDir '.\system32' 87 85 if (RC <> 0) then call failure rc, 'renaming' sDir'->system32 failed'; 88 86 'ren .\system32\glide ..\glide_tmp' 89 87 if (RC <> 0) then 90 88 do 91 'ren .\system32 ..\'||sDir 92 call failure rc, 'renaming system32\glide -> ..\glide_tmp failed'; 89 rc2 = rc; 90 'ren .\system32' sRoot'\'sDir 91 call failure rc2, 'renaming system32\glide -> ..\glide_tmp failed'; 93 92 end 93 94 call copy sRoot'\bin\wgss50.dll', 'system32\wgss50.dll'; 94 95 95 96 say 'zip -9 -R' sZipFile '* -xCVS'; … … 99 100 rc2 = rc; 100 101 'ren ..\glide_tmp .\system32\glide' 101 'ren .\system32 ..\'||sDir102 'ren .\system32' sRoot'\'sDir 102 103 call failure rc2, 'zip...'; 103 104 end 104 105 'ren ..\glide_tmp .\system32\glide' 105 106 if (RC <> 0) then call failure rc, 'renaming glide_tmp failed'; 106 'ren .\system32 ..\'||sDir107 'ren .\system32' sRoot'\'sDir 107 108 if (RC <> 0) then call failure rc, 'renaming' sDir'->system32 failed'; 108 109 109 110 /* restore directory */ 110 call ChDir '..';111 call directory(sRoot); 111 112 return; 112 113 … … 116 117 packdir3dx: procedure expose sStartDir; 117 118 parse arg sDir, sType; 118 sZipFile = filespec('path', directory())||'odin32bin-' || DATE(S) || '-glide-' || sType || '.zip'; 119 sDir = directory(); 119 sZipFile = directory()||'\odin32bin-' || DATE(S) || '-' || sType || '.zip'; 120 120 121 sRoot = directory(); 121 122 call ChDir sDir 122 say 'zip -9 -R' sZipFile ' glide\* -xCVS';123 'zip -9 -R' sZipFile ' glide\* -xCVS';123 say 'zip -9 -R' sZipFile '* -xCVS'; 124 'zip -9 -R' sZipFile '* -xCVS'; 124 125 if (rc <> 0) then call failure rc, 'zip...'; 125 126 126 127 /* restore directory */ 127 call directory(s Dir);128 call directory(sRoot); 128 129 return; 129 130
Note:
See TracChangeset
for help on using the changeset viewer.