Changeset 1293
- Timestamp:
- Nov 22, 2008, 12:57:52 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ReleaseEdit.cmd (modified) (5 diffs)
-
ReleaseTool.cmd (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseEdit.cmd
r1291 r1293 64 64 else if stream(file, 'c', 'query exists') = '' then 65 65 call Usage /* and exit */ 66 /* Set extension, if none set it to uppercase(file) */67 ext = substr(translate(file), lastpos('.', file) +1)68 66 parse var ver major '.' minor '.' CSDLevel 69 67 if CSDlevel = '' then 70 68 CSDlevel = 0 71 69 70 if datatype(major) \= 'NUM' | datatype(minor) \= 'NUM' | datatype(CSDlevel) \= 'NUM' then 71 call Usage 72 ver = major || '.' || minor || '.' || CSDlevel 73 74 /* Set extension, if none set it to uppercase(file) */ 75 ext = substr(translate(file), lastpos('.', file) +1) 76 72 77 /* Prepare temporary file */ 73 78 call RxFuncAdd 'SysTempFilename', 'REXXUTIL', 'SysTempFilename' 74 79 tmpfile = SysTempFilename('redittmp.???') 75 ' copy' file tmpfile80 '@copy' file tmpfile '1>nul 2>nul' 76 81 if rc \= 0 then 77 82 do … … 80 85 end 81 86 if wordpos(ext, 'H') = 0 then 82 ' del' file87 '@del' file '1>nul 2>nul' 83 88 84 89 /* Set fixed strings */ … … 105 110 signal exit_routine 106 111 end 107 112 say 'Processing file:' file 108 113 copyright_year_marker = 'copyright-year' 109 114 copyright_year_marker_len = length(copyright_year_marker) … … 146 151 do 147 152 if translate(file) = copyright_h then 148 'grep -E "^#define.*COPYRIGHT_YEAR.*' || year || '" ' || file || ' >nul || del ' || file || ' && sed -r -e "/#define.*COPYRIGHT_YEAR/s/[0-9]+/' || year || '/" ' || tmpfile || ' >' file 153 do 154 say 'Processing file:' file 155 'grep -E "^#define.*COPYRIGHT_YEAR.*' || year || '" ' || file || ' >nul || del ' || file || ' && sed -r -e "/#define.*COPYRIGHT_YEAR/s/[0-9]+/' || year || '/" ' || tmpfile || ' >' file 156 end 149 157 else 150 158 do /* change below to delete and then update version.h only if version is different? */ 151 'del' file 159 say 'Processing file:' file 160 '@del' file '1>nul 2>nul' 152 161 'sed -r -e "/#define[ \t]+VERMAJOR/s/(#define[ \t]+VERMAJOR[ \t]+)[^ \t]+/\1' || major || '/g" -e "/#define[ \t]+VERMINOR/s/(#define[ \t]+VERMINOR[ \t]+)[^ \t]+/\1' || minor || '/g" ' || tmpfile || ' >' file 153 162 end … … 155 164 when ext = 'DIZ' then 156 165 do 166 say 'Processing file:' file 157 167 'sed -r "/FM\/2 v/s/(FM\/2 v)[0-9]+\.[0-9.]+/\1' || ver || '/" ' || tmpfile || ' >' file 158 168 end 159 169 when ext = mkstr_makefile then 160 170 do 171 say 'Processing file:' file 161 172 'sed -r -e "/desc/s/(SLAInc:).*(\$#@\$#\$#1\$#\$# )[0-9/]+ [0-9:]+/\1' || ver || '\2' || month || '\/' || day || '\/' || year right(major, 2, '0') || ':' || right(minor, 2, '0') || ':' || right(CSDlevel, 2, '0') || '/" ' || tmpfile || ' >' file 162 173 end 163 174 when ext = warpin_makefile then 164 175 do 176 say 'Processing file:' file 165 177 warpin_db_ver = (major + 0) || '\\' || (minor + 0) || '\\' || (CSDlevel + 0) 166 178 warpin_makefile_ver = major || '-' || minor || '-' || CSDlevel -
trunk/ReleaseTool.cmd
r1292 r1293 50 50 51 51 52 globals = 'cmd prompt editor editorcmds killpid tester killtarget version_filelist pager '52 globals = 'cmd prompt editor editorcmds killpid tester killtarget version_filelist pager prev_action' 53 53 54 54 parse arg ver next_ver … … 76 76 action = -1 /* Skip SELECT below */ 77 77 end 78 prev_action = action 78 79 end 79 80 select … … 89 90 end 90 91 signal on Error 92 prev_action = action 91 93 end 92 94 when action = 1 then … … 96 98 say 97 99 say 'Use the Netlabs FM/2 Developer''s mailing list and wait 24 hours.' 100 prev_action = action 98 101 end 99 102 when action = 2 then … … 101 104 call NotYet action 102 105 say 'Check for committed work.' 106 prev_action = action 103 107 end 104 108 when action = 3 then … … 108 112 say 'Online and OK to execute: 'svn_cmd'? (Y/n)' 109 113 if translate(SysGetKey()) \= 'N' then svn_cmd 114 prev_action = action 110 115 end 111 116 when action = 4 then … … 118 123 say 'Online and OK to execute: 'svn_cmd'? (Y/n)' 119 124 if translate(SysGetKey()) \= 'N' then svn_cmd 125 prev_action = action 120 126 end 121 127 when action = 5 then … … 143 149 end 144 150 call BuildHobbesTxt(ver) 151 prev_action = action 145 152 end 146 153 when action = 6 then … … 148 155 'set WARNALL=1' 149 156 'wmake -a all |' pager 157 prev_action = action 150 158 end 151 159 when action = 7 then 152 do /* Test built code */153 if tester == '' then154 do160 do /* Test built code */ 161 if tester == '' then 162 do 155 163 call NotYet action 156 164 say 'Test the built code.' 157 end158 else159 do /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files165 end 166 else 167 do /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files 160 168 to test directory and change to that directory must type exit to return here*/ 161 169 killpid killtarget 162 170 cmd tester 163 end 171 end 172 prev_action = action 164 173 end 165 174 when action = 8 then 166 175 do /* Commit code */ 167 176 call CommitifOK 177 prev_action = action 168 178 end 169 179 when action = 9 then … … 176 186 say 'Online and OK to execute: 'svn_cmd'? (y/N)' 177 187 if translate(SysGetKey()) = 'Y' then svn_cmd 188 prev_action = action 178 189 end 179 190 when action = 10 then 180 191 do /* Build for the release */ 192 'set WARNALL=' 181 193 'set FORTIFY=' 182 194 'set DEBUG=' 183 195 'wmake -a all' 196 prev_action = action 184 197 end 185 198 when action = 11 then … … 202 215 cmd tester 203 216 end 217 prev_action = action 204 218 end 205 219 when action = 12 then 206 220 do /* Lxlite */ 207 221 'wmake lxlite' 222 prev_action = action 208 223 end 209 224 when action = 13 then … … 222 237 cmd tester 223 238 end 239 prev_action = action 224 240 end 225 241 when action = 14 then … … 227 243 call SysCls 228 244 'wmake dist' 245 prev_action = action 229 246 end 230 247 when action = 15 then … … 235 252 zip_ver = translate(ver, '-', '.') 236 253 'zip -j9 fm2-' || zip_ver || ' warpin\fm2-' || zip_ver || '.wpi' 254 prev_action = action 237 255 end 238 256 when action = 16 then … … 240 258 call NotYet action 241 259 say 'If FM/2 Utilities have been updated, then zip them up.' 260 prev_action = action 242 261 end 243 262 when action = 17 then … … 252 271 say 253 272 say ' Update "RBuild" with the new tag: FM2-' || translate(ver, '-', '.') 273 prev_action = action 254 274 end 255 275 when action = 18 then … … 270 290 say ' (TRAC can move the tickets in bulk when you mark' 271 291 say ' the version milestone complete.)' 292 prev_action = action 272 293 end 273 294 when action = 19 then … … 280 301 say 'Post a note to "Netlabs Community" <community@netlabs.org>' 281 302 say 'requesting that the release be moved to pub/fm2.' 303 prev_action = action 282 304 end 283 305 when action = 20 then … … 289 311 end 290 312 call CommitifOK version_filelist 313 prev_action = action 291 314 end 292 315 otherwise … … 358 381 else 359 382 pager = 'more' 383 prev_action = 'N/A' 360 384 return 361 385 362 DisplayMenu: procedure 386 DisplayMenu: procedure expose (globals) 363 387 do forever 364 388 call SysCls 365 389 say;say;say 366 say 'Release Tasks' 390 say 'Release Tasks' || copies(' ', 35) || 'Previous action:' prev_action 367 391 say 368 392 say '1. Ensure all work for this release is committed.' 369 393 say '2. Verify completed tickets are marked closed.' 370 say '3. ( svn) update local files.'394 say '3. (SVN) Update local files.' 371 395 say '4. Check (svn) status of local files.' 372 396 say '5. Edit various files with version #''s and date''s.' … … 415 439 GetVer: procedure 416 440 parse arg ver_text 441 ver_retry: 417 442 say 418 443 say 'Please enter the version (x.yy.zz) for' ver_text ':' 419 parse value linein() with major '.' minor '.' CSDlevel 444 ver_value = linein() 445 parse var major '.' minor '.' CSDlevel 420 446 if minor = '' then 421 447 minor = 0 422 448 if CSDlevel = '' then 423 449 CSDlevel = 0 450 if datatype(major) \= 'NUM' | datatype(minor \= 'NUM') | datatype(CSDlevel) \= 'NUM' then 451 do 452 say 'Error: Invalid version entered:' ver_value 453 say; 454 say 'Try again.' 455 signal ver_retry 456 end 457 /* The following will remove leading zeros */ 424 458 major = major + 0 425 459 minor = minor + 0
Note:
See TracChangeset
for help on using the changeset viewer.
