Changeset 10019 for trunk/tools
- Timestamp:
- Apr 15, 2003, 12:08:04 AM (22 years ago)
- Location:
- trunk/tools/DailyBuild
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/DailyBuild/job.cmd
r9773 r10019 1 /* $Id: job.cmd,v 1. 9 2003-02-06 21:05:37bird Exp $1 /* $Id: job.cmd,v 1.10 2003-04-14 22:08:03 bird Exp $ 2 2 * 3 3 * Main job for building OS/2. … … 54 54 parse source sd1 sd2 sScript 55 55 sScriptDir = filespec('drive', sScript) || filespec('path', sScript); 56 sLogFile = sScriptDir || '\logs\' || sDate || '.log'; 56 sStateDir = sScriptDir||'State'||sType; 57 sLogFile = sScriptDir || 'Logs\' || sDate || '.log'; 57 58 sTree = sScriptDir || '..\tree' || sDate; 58 'mkdir 'sScriptDir||'\logs' 59 'mkdir 'sScriptDir||'\DBBackup' 59 'call' sScriptDir||'bin\CreatePath.cmd 'sScriptDir||'Logs' 60 'call' sScriptDir||'bin\CreatePath.cmd 'sScriptDir||'DBBackup' 61 'call' sScriptDir||'bin\CreatePath.cmd 'sStateDir; 60 62 61 63 /* … … 65 67 filespec('drive', sScript); 66 68 'cd' sTree; 67 if (rc <> 0) then call failure rc, ' cd ..\'sTree 'failed.';69 if (rc <> 0) then call failure rc, '', 'cd 'sTree 'failed.'; 68 70 'call' sScriptDir || 'odin32env.cmd' 69 if (rc <> 0) then call failure rc, 'Env failed.'; 71 if (rc <> 0) then call failure rc, '', 'Env failed.'; 72 if (IsChangeLogModified(sStateDir)) then 73 do 74 say 'Nothing to do. ChangeLog unmodified.' 75 'echo ChangeLog unmodified >' sLogFile; 76 exit(0); 77 end 70 78 'call' sScriptDir || 'odin32clean.cmd' 71 if (rc <> 0) then call failure rc, 'Clean failed.';79 if (rc <> 0) then call failure rc, sStateDir, 'Clean failed.'; 72 80 'call' sScriptDir || 'odin32get.cmd' 73 if (rc <> 0) then call failure rc, 'Get failed.';81 if (rc <> 0) then call failure rc, sStateDir, 'Get failed.'; 74 82 'call' sScriptDir || 'odin32bldnr.cmd inc' 75 if (rc <> 0) then call failure rc, 'Build Nr inc failed.';83 if (rc <> 0) then call failure rc, sStateDir, 'Build Nr inc failed.'; 76 84 'call' sScriptDir || 'odin32build.cmd 2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */ 77 if (rc <> 0) then call failure rc, 'Build failed.';85 if (rc <> 0) then call failure rc, sStateDir, 'Build failed.'; 78 86 'call' sScriptDir || 'odin32bldnr.cmd commit' 79 if (rc <> 0) then call failure rc, 'Build Nr commit failed.';87 if (rc <> 0) then call failure rc, sStateDir, 'Build Nr commit failed.'; 80 88 81 89 /* … … 83 91 */ 84 92 'call' sScriptDir || 'odin32pack.cmd 2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */ 85 if (rc <> 0) then call failure rc, 'Packing failed.'; 86 'start /BG "Uploading Odin..." nice -f cmd /C' sScriptDir || 'odin32ftp2.cmd'; 87 if (rc <> 0) then say 'rc='rc' FTPing failed. i = ' || i; 93 if (rc <> 0) then call failure rc, sStateDir, 'Packing failed.'; 94 'call' sScriptDir || 'odin32ftp2.cmd'; 95 if (rc <> 0) then call failure rc, sStateDir, 'Upload failed!'; 96 88 97 89 98 /* 90 99 * database update 91 100 */ 101 /* 92 102 sScriptDir || 'odin32db.cmd 2>&1 | tee /a ' || sLogFile; /* 4OS/2 tee command. */ 93 if (rc <> 0) then call failure rc, 'db failed.'; 103 if (rc <> 0) then call failure rc, '', 'db failed.'; 104 */ 94 105 95 /*96 * Update local installation at d:\odin...97 */98 /*99 'd:';100 if (rc <> 0) then call failure rc, 'd: failed.';101 'cd d:\odin';102 if (rc <> 0) then call failure rc, 'cd d:\odin failed.';103 'unzip -o ' || sTree || '\odin*debug.zip';104 if (rc <> 0) then call failure rc, 'unzip failed.';105 'd:'106 if (rc <> 0) then call failure rc, 'd: failed.';107 */108 106 /* successfull exit */ 109 107 exit(0); … … 114 112 */ 115 113 failure: procedure 116 parse arg rc, s Text;114 parse arg rc, sStateDir, sText; 117 115 say 'rc='rc sText 116 if (sStateDir <> '') then 117 call ForceNextBuild sStateDir; 118 118 exit(rc); 119 119 120 121 /* 122 * Checks if the change log is up to date or not. 123 */ 124 IsChangeLogModified: procedure 125 parse arg sStateDir; 126 127 sDir = directory(); 128 'cd' sStateDir 129 if (rc <> 0) then call failure rc, 'cd 'sStateDir' failed!'; 130 131 if (stream(sStateDir'\ChangeLog', 'c', 'query exist') == '') then 132 do 133 /* no such file: check it out. */ 134 fUpToDate = 0; 135 end 136 else 137 do 138 /* check if up to date. */ 139 'cvs status ChangeLog | grep -q "Status: Up-to-date"'; 140 if (rc <> 0) then 141 fUpToDate = 0; 142 else 143 fUpToDate = 1; 144 end 145 146 /* 147 * Check out the latest ChangeLog. 148 */ 149 if (\fUpToDate) then 150 do 151 /* check if up to date. */ 152 'if exist ChangeLog del ChangeLog'; 153 'call cvs checkout ChangeLog'; 154 end 155 156 call directory sDir; 157 return fUpToDate; 158 159 160 /* 161 * Force build next time. 162 * Called when we fail. 163 */ 164 ForceNextBuild: procedure 165 parse arg sStateDir; 166 'if exist 'sStateDir'\ChangeLog del 'sStateDir'\ChangeLog'; 167 return rc; -
trunk/tools/DailyBuild/odin32env.cmd
r9788 r10019 1 /* $Id: odin32env.cmd,v 1.3 0 2003-02-11 15:06:36bird Exp $1 /* $Id: odin32env.cmd,v 1.31 2003-04-14 22:08:04 bird Exp $ 2 2 * 3 3 * Sets the build environment. … … 17 17 /* base env */ 18 18 sOldDir = directory(); 19 call directory s Src||'\bin';20 call BuildEnv 'warpin mysql perl~ cvs ddkbase mscv6-16 emx gcc3 03vac365õ watcomc11cõ vac40õ vac308 toolkit40 debug'19 call directory sDir||'\bin'; 20 call BuildEnv 'warpin mysql perl~ cvs ddkbase mscv6-16 emx gcc321 vac365õ watcomc11cõ vac40õ vac308 toolkit40 debug' 21 21 call directory sOldDir; 22 22 -
trunk/tools/DailyBuild/odin32ftp2.cmd
r9821 r10019 1 /* $Id: odin32ftp2.cmd,v 1.2 0 2003-02-18 01:01:01bird Exp $1 /* $Id: odin32ftp2.cmd,v 1.21 2003-04-14 22:08:04 bird Exp $ 2 2 * 3 3 * Uploads the relase and debug builds to the FTP sites. … … 86 86 rc = cleanFtp('netlabs-delete', '/daily', 'ftp.netlabs.org'); 87 87 do j = 1 to asUploads.0 88 /*rc = putFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org'); */89 rc = putRexxFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');88 rc = putFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org'); 89 /*rc = putRexxFtp(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');*/ 90 90 /*rc = forwardSF(asUploads.j, 'netlabs-'||asUploads.j, '/'||sDirectory, 'ftp.netlabs.org');*/ 91 91 end
Note:
See TracChangeset
for help on using the changeset viewer.