Changeset 8788 for trunk/tools
- Timestamp:
- Jun 27, 2002, 12:11:57 AM (23 years ago)
- Location:
- trunk/tools/DailyBuild
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/DailyBuild/job.cmd
r6125 r8788 1 /* $Id: job.cmd,v 1. 7 2001-06-27 08:34:43bird Exp $1 /* $Id: job.cmd,v 1.8 2002-06-26 22:06:57 bird Exp $ 2 2 * 3 3 * Main job for building OS/2. 4 4 * 5 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 14 14 15 15 /* 16 * Get and set the build date. 17 */ 18 parse arg sDate sType sDummy 19 fOk = 1; 20 if (sDate <> '') then 21 do 22 parse var sDate sYear'-'sMonth'-'sDay 23 sType = substr(translate(sType), 1, 1); 24 if ( (length(sYear) <> 4) | (strip(translate(sYear, '','0123456789')) <> ''), 25 | (length(sMonth) <>2) | (strip(translate(sMonth, '','0123456789')) <> ''), 26 | (length(sDay) <> 2) | (strip(translate(sDay, '','0123456789')) <> ''), 27 | ((sType <> 'W') & (sType <> 'D'))) then 28 fOk = 0; 29 else 30 sDate = sYear||sMonth||sDay; 31 end 32 else 33 do 34 sDate = date('S'); 35 sType = 'D'; 36 if (Date('B')//7 = 3) then /* weekly on Thursdays */ 37 sType = 'W'; 38 end 39 40 if (\fOk) then 41 do 42 say 'Hey mister! you''ve given me a bad date or build type!!!'; 43 say 'Date='sYear'-'sMonth'-'sDay 44 say 'Buildtype='sType; 45 exit(16); 46 end 47 call value 'BUILD_DATE', sDate, 'OS2ENVIRONMENT'; 48 call value 'BUILD_TYPE', sType, 'OS2ENVIRONMENT'; 49 50 51 /* 16 52 * Get source directory of this script 17 53 */ 18 54 parse source sd1 sd2 sScript 19 55 sScriptDir = filespec('drive', sScript) || filespec('path', sScript); 20 sLogFile = sScriptDir || '\logs\' || Date('S')|| '.log';21 sTree = sScriptDir || '..\tree' || Date('S');56 sLogFile = sScriptDir || '\logs\' || sDate || '.log'; 57 sTree = sScriptDir || '..\tree' || sDate; 22 58 23 59 /* … … 58 94 * Update local installation at d:\odin... 59 95 */ 96 /* 60 97 'd:'; 61 98 if (rc <> 0) then call failure rc, 'd: failed.'; … … 66 103 'd:' 67 104 if (rc <> 0) then call failure rc, 'd: failed.'; 68 105 */ 69 106 /* successfull exit */ 70 107 exit(0); -
trunk/tools/DailyBuild/odin32bldnr.cmd
r4993 r8788 1 /* $Id: odin32bldnr.cmd,v 1. 4 2001-01-20 18:22:47bird Exp $1 /* $Id: odin32bldnr.cmd,v 1.5 2002-06-26 22:07:15 bird Exp $ 2 2 * 3 3 * Build number update script. … … 9 9 * Assumes that current directory is the root. 10 10 * 11 * Copyright (c) 2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)11 * Copyright (c) 2001-2002 knut st. osmundsen (bird@anduin.net) 12 12 * 13 13 * Project Odin Software License can be found in LICENSE.TXT … … 17 17 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'; 18 18 call SysLoadFuncs; 19 20 /* get build settings */ 21 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 22 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 23 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 19 24 20 25 … … 84 89 * Commit the build nr. file. 85 90 */ 86 'cvs commit -m "Daily build - 'Date('S')'" odinbuild.h'; 91 if (sType = 'W') then 92 'cvs commit -m "Weekly build - 'sDate'" odinbuild.h'; 93 else 94 'cvs commit -m "Daily build - 'sDate'" odinbuild.h'; 87 95 if (rc <> 0) then call failed rc, 'failed to commit odinbuild.h' 88 96 end -
trunk/tools/DailyBuild/odin32build.cmd
r3451 r8788 1 /* $Id: odin32build.cmd,v 1. 1 2000-04-27 11:32:24bird Exp $1 /* $Id: odin32build.cmd,v 1.2 2002-06-26 22:08:32 bird Exp $ 2 2 * 3 3 * Builds debug and release editions of Odin32. … … 8 8 * 9 9 */ 10 /* get build settings */ 11 /*sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 12 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 13 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 14 */ 15 10 16 /* debug build */ 11 17 'SET DEBUG=1'; -
trunk/tools/DailyBuild/odin32clean.cmd
r4193 r8788 1 /* $Id: odin32clean.cmd,v 1. 2 2000-09-05 17:36:22bird Exp $1 /* $Id: odin32clean.cmd,v 1.3 2002-06-26 22:09:17 bird Exp $ 2 2 * 3 3 * Removes trees. WARNING!!!!! All tree<date> directories are removed … … 6 6 * (Delpath is a "deltree" clone I've made, use your own.) 7 7 * 8 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@mynd.no)8 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 9 9 * 10 10 * Project Odin Software License can be found in LICENSE.TXT … … 12 12 */ 13 13 14 /* get build settings */ 15 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 16 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 17 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 18 14 19 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'; 15 20 call SysloadFuncs; 16 21 17 sTree = 'tree' || Date(S);22 sTree = 'tree' || sDate; 18 23 19 24 /* 20 25 * We assume currentdirectory is the current tree. 21 26 */ 22 rc = SysFileTree('..\tree'||substr( Date('S'),1,4)||'*.', 'asTrees', 'DO');27 rc = SysFileTree('..\tree'||substr(sDate,1,4)||'*.', 'asTrees', 'DO'); 23 28 if (rc = 0) then 24 29 do … … 31 36 end 32 37 end 38 exit(0); 33 39 34 exit(0);35 40 36 41 failure: procedure 37 42 parse arg rc, sText; 38 43 say 'rc='rc sText 39 44 exit(rc); 40 45 -
trunk/tools/DailyBuild/odin32db.cmd
r8022 r8788 1 /* $Id: odin32db.cmd,v 1. 6 2002-02-26 17:25:37bird Exp $1 /* $Id: odin32db.cmd,v 1.7 2002-06-26 22:09:59 bird Exp $ 2 2 * 3 3 * Updates the Odin32 API database. 4 4 * 5 * Copyright (c) 1999-2002 knut st. osmundsen ( knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT 8 8 * 9 9 */ 10 /* get build settings */ 11 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 12 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 13 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 14 15 10 16 /* load rexxutils functions and Ftp Utils. */ 11 17 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'; … … 37 43 if rc <> 0 then call failure rc, 'cd <> failed'; 38 44 'mysqladmin refresh'; 39 'rar a -m5 ' || sScriptDir || 'dbbackup\db'|| date(S)||'.rar *'45 'rar a -m5 ' || sScriptDir || 'dbbackup\db'||sDate||'.rar *' 40 46 if rc <> 0 then call failure rc, 'rar db failed'; 41 47 'cd \'; … … 73 79 parse arg rc, sText; 74 80 say 'rc='rc sText 75 81 exit(rc); 76 82 77 83 failure2: procedure 78 84 parse arg rc, sText; 79 85 say 'rc='rc sText 80 86 return 0; 81 87 82 88 … … 110 116 if (sDataDir = '') then 111 117 sDataDir = 'd:\knut\Apps\MySql\data\'; 112 118 return sDataDir; 113 119 114 120 /* … … 167 173 end 168 174 call stream sPasswd, 'c', 'close'; 169 175 return sRet; 170 176 171 177 … … 218 224 else 219 225 rc = 0; 220 221 222 226 return 0; 227 228 -
trunk/tools/DailyBuild/odin32dbupl.cmd
r7840 r8788 1 /* $Id: odin32dbupl.cmd,v 1. 1 2002-02-08 10:56:02bird Exp $1 /* $Id: odin32dbupl.cmd,v 1.2 2002-06-26 22:10:23 bird Exp $ 2 2 * 3 3 * Updates the Odin32 API database. 4 4 * 5 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT 8 8 * 9 9 */ 10 11 /* get build settings */ 12 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 13 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 14 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 15 10 16 /* load rexxutils functions */ 11 17 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'; -
trunk/tools/DailyBuild/odin32ftp.cmd
r4919 r8788 1 /* $Id: odin32ftp.cmd,v 1. 2 2001-01-10 14:17:23bird Exp $1 /* $Id: odin32ftp.cmd,v 1.3 2002-06-26 22:10:45 bird Exp $ 2 2 * 3 3 * Old FTP routines using only RexxFTP. 4 4 * 5 * Copyright (c) 1999-200 1 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 9 9 */ 10 10 /*Trace 'A'*/ 11 12 /* get build settings */ 13 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 14 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 15 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 16 11 17 12 18 rc = RxFuncAdd('FtpLoadFuncs','rxFtp','FtpLoadFuncs'); … … 16 22 17 23 do i = 1 to 7 18 sFile = 'odin32bin-'|| DATE(S);19 sDelete = 'odin32bin-'|| DateSub( DATE('S'), 7);24 sFile = 'odin32bin-'|| sDate; 25 sDelete = 'odin32bin-'|| DateSub(sDate, 7); 20 26 sFileDbg = sFile || '-debug.zip'; 21 27 sDeleteDbg = sDelete || '-debug.zip'; … … 70 76 do 71 77 rc = 0; 72 if ( DATE('B')//7 <> 5) then78 if (sType <> 'D') then 73 79 rc = FtpDelete(sFileRemote); 74 80 rcPut = FtpPut(sFile, sFileRemote, 'Binary'); … … 103 109 say 'rc='rc sText 104 110 say 'FTPerrno:'||iftperrno 105 111 return; 106 112 107 113 … … 152 158 end 153 159 call stream sPasswd, 'c', 'close'; 154 160 return sRet; 155 161 156 162 … … 196 202 sDate = sDate - iDayInMonth - 8869; /* last day of last year */ 197 203 end 198 199 return sDate; 204 return sDate; 205 200 206 201 207 /* … … 222 228 cDays = 31; 223 229 end /* select */ 224 225 226 230 return cDays; 231 232 -
trunk/tools/DailyBuild/odin32ftp2.cmd
r7230 r8788 1 /* $Id: odin32ftp2.cmd,v 1.1 8 2001-10-26 22:19:29bird Exp $1 /* $Id: odin32ftp2.cmd,v 1.19 2002-06-26 22:11:28 bird Exp $ 2 2 * 3 3 * Uploads the relase and debug builds to the FTP sites. 4 4 * 5 * Copyright (c) 1999-200 1 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT … … 9 9 */ 10 10 /*Trace 'A'*/ 11 12 /* get build settings */ 13 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 14 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 15 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 16 11 17 12 18 rc = RxFuncAdd('FtpLoadFuncs','rxFtp','FtpLoadFuncs'); … … 18 24 * Determin files to upload and files to delete. 19 25 */ 20 if ( DATE('B')//7 = 3) then /* Thursdays only! */26 if (sType = 'W') then 21 27 do /* weekly .wpi build */ 22 28 asUploads.0 = 3; 23 29 asUploads.1 = 'ChangeLog'; 24 asUploads.2 = 'odin32bin-' DATE('S')'-release.wpi';25 asUploads.3 = 'odin32bin-' DATE('S')'-debug.wpi';30 asUploads.2 = 'odin32bin-'sDate'-release.wpi'; 31 asUploads.3 = 'odin32bin-'sDate'-debug.wpi'; 26 32 sDirectory = 'weekly'; 27 33 end … … 30 36 asUploads.0 = 3; 31 37 asUploads.1 = 'ChangeLog'; 32 asUploads.2 = 'odin32bin-' DATE('S')'-release.zip';33 asUploads.3 = 'odin32bin-' DATE('S')'-debug.zip';38 asUploads.2 = 'odin32bin-'sDate'-release.zip'; 39 asUploads.3 = 'odin32bin-'sDate'-debug.zip'; 34 40 sDirectory = 'daily'; 35 41 end … … 38 44 do i = 1 to 12 39 45 j = i * 2; 40 asDelete.j = 'odin32bin-'DateSub( Date('S'), 31+i)'-release.zip';46 asDelete.j = 'odin32bin-'DateSub(sDate, 31+i)'-release.zip'; 41 47 j = j + 1; 42 asDelete.j = 'odin32bin-'DateSub( Date('S'), 31+i)'-debug.zip';48 asDelete.j = 'odin32bin-'DateSub(sDate, 31+i)'-debug.zip'; 43 49 end 44 50 … … 105 111 'echo ok >' sLockFile 106 112 end 107 108 return 0; 113 return 0; 114 109 115 110 116 … … 128 134 'echo ok >' sLockFile 129 135 end 130 131 return 0; 136 return 0; 137 132 138 133 139 … … 162 168 'echo ok >' sLockFile; 163 169 end 164 165 return 0; 170 return 0; 166 171 167 172 … … 210 215 else 211 216 rc = 0; 212 213 return 0; 217 return 0; 218 214 219 215 220 … … 263 268 else 264 269 rc = 0; 265 266 return rc; 270 return rc; 271 267 272 268 273 … … 315 320 else 316 321 rc = 0; 317 return 0; 322 return 0; 323 318 324 319 325 /* … … 324 330 say 'rc='rc sText 325 331 say 'FTPerrno:'||iftperrno 326 332 return; 327 333 328 334 … … 370 376 end 371 377 call stream sPasswd, 'c', 'close'; 372 373 374 375 testdatesub: 378 return sRet; 379 380 381 testdatesub: procedure 376 382 sDate='20010131'; 377 383 … … 379 385 say sDate '-' i '=' DateSub(sDate, i); 380 386 end 381 387 exit; 382 388 383 389 … … 423 429 sDate = sDate - iDayInMonth - 8869; /* last day of last year */ 424 430 end 425 426 return sDate; 431 return sDate; 432 427 433 428 434 /* … … 449 455 cDays = 31; 450 456 end /* select */ 451 452 457 return cDays; 458 -
trunk/tools/DailyBuild/odin32get.cmd
r3842 r8788 1 /* $Id: odin32get.cmd,v 1. 2 2000-07-18 11:18:14bird Exp $1 /* $Id: odin32get.cmd,v 1.3 2002-06-26 22:11:43 bird Exp $ 2 2 * 3 3 * Gets the CVS tree from netlabs. 4 4 * 5 * Copyright (c) 1999-200 0 knut st. osmundsen (knut.stange.osmundsen@mynd.no)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 6 6 * 7 7 * Project Odin Software License can be found in LICENSE.TXT 8 8 * 9 9 */ 10 11 /* get build settings */ 12 /* 13 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 14 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 15 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 16 */ 10 17 11 18 'cvs checkout .' -
trunk/tools/DailyBuild/odin32pack.cmd
r7730 r8788 1 /* $Id: odin32pack.cmd,v 1.2 2 2002-01-06 16:53:23bird Exp $1 /* $Id: odin32pack.cmd,v 1.23 2002-06-26 22:11:57 bird Exp $ 2 2 * 3 3 * Make the two zip files. … … 11 11 */ 12 12 sStartDir = directory(); 13 14 if (DATE('B')//7 = 3) then /* weekly on Thursdays */ 15 sType = '-Weekly'; 13 sDate = value('BUILD_DATE',, 'OS2ENVIRONMENT'); 14 sType = value('BUILD_TYPE',, 'OS2ENVIRONMENT'); 15 if ((sDate = '') | (sType = '')) then do say 'BUILD_DATE/BUILD_TYPE unset, you didn''t start job.cmd.'; exit(16); end 16 17 if (sType = 'W') then 18 sTypeOdinCMD = '-Weekly'; 16 19 else 17 sType = '-Daily'; 20 sTypeOdinCMD = '-Daily'; 21 18 22 19 23 /* … … 21 25 */ 22 26 call ChDir 'tools\install'; 23 'call odin.cmd 'sType ' debug'27 'call odin.cmd 'sTypeOdinCMD' debug' 24 28 if (RC <> 0) then call failure rc, 'odin.cmd debug failed.'; 25 'call odin.cmd 'sType ' release'29 'call odin.cmd 'sTypeOdinCMD' release' 26 30 if (RC <> 0) then call failure rc, 'odin.cmd release failed.'; 27 31 'move *.wpi' sStartDir; … … 40 44 * Make copy. 41 45 */ 42 if ( DATE('B')//7 = 3) then46 if (sType = 'W') then 43 47 'copy *.wpi e:\DailyBuildArchive\' 44 48 else … … 49 53 50 54 51 packdir: procedure expose sStartDir ;52 parse arg sDir, s Type;53 54 sZipFile = directory() || '\odin32bin-' || DATE(S) || '-' || sType || '.zip';55 packdir: procedure expose sStartDir sDate sType; 56 parse arg sDir, sBldType; 57 58 sZipFile = directory() || '\odin32bin-' || sDate || '-' || sBldType || '.zip'; 55 59 56 60 /* … … 101 105 do 102 106 rc2 = rc; 103 call backout sDir, s Type, sRoot;107 call backout sDir, sBldType, sRoot; 104 108 call failure rc2, 'renaming system32\glide -> ..\glide_tmp failed'; 105 109 end … … 107 111 call copy sRoot'\bin\wgss50.dll', 'system32\wgss50.dll'; 108 112 /*call copy sRoot'\bin\odin.ini', 'system32\Odin.ini';*/ 109 if (pos('debug', s Type) > 0) then113 if (pos('debug', sBldType) > 0) then 110 114 do 111 115 call copy sRoot'\bin\release\odincrt.dll', 'system32\odincrt.dll' … … 118 122 do 119 123 rc2 = rc; 120 call backout sDir, s Type, sRoot;124 call backout sDir, sBldType, sRoot; 121 125 call failure rc2, 'zip...'; 122 126 end 123 127 124 128 /* resotre */ 125 call backout sDir, s Type, sRoot;129 call backout sDir, sBldType, sRoot; 126 130 127 131 /* restore directory */ … … 131 135 /* backout procedure for packdir */ 132 136 backout: procedure; 133 parse arg sDir, s Type, sRoot134 if (pos('debug', s Type) > 0) then137 parse arg sDir, sBldType, sRoot 138 if (pos('debug', sBldType) > 0) then 135 139 do 136 140 'del system32\odincrt.dll' … … 144 148 * Pack the 3dx dlls. 145 149 */ 146 packdir3dx: procedure expose sStartDir ;147 parse arg sDir, s Type;148 sZipFile = directory()||'\odin32bin-' || DATE(S) || '-' || sType || '.zip';150 packdir3dx: procedure expose sStartDir sDate sType; 151 parse arg sDir, sBldType; 152 sZipFile = directory()||'\odin32bin-' || sDate || '-' || sBldType || '.zip'; 149 153 150 154 sRoot = directory();
Note:
See TracChangeset
for help on using the changeset viewer.