Changeset 21458 for trunk/tools/DailyBuild
- Timestamp:
- Sep 24, 2010, 5:23:27 PM (15 years ago)
- Location:
- trunk/tools/DailyBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/DailyBuild/odin32bldnr.cmd
r21298 r21458 84 84 rc = 0; 85 85 end 86 else if (sOperation = 'svn') then 87 do 88 89 /* get svn revision */ 90 'rxqueue /clear' 91 'svn info | grep "Revision:" | cut -d" " -f2 | rxqueue' 92 iBuildNr = LineIn("QUEUE:") 93 94 /* 95 * Scan the odinbuild.h file for ODIN32_BUILD_NR. 96 */ 97 sOut = 'odinbuild.h'; 98 sIn = 'odinbuild.h.backup'; 99 call SysFileDelete('odinbuild.h.backup'); 100 'copy' sOut sIn; 101 if (rc) then call failure rc, 'backup copy failed'; 102 call SysFileDelete('odinbuild.h'); 103 104 rcIn = stream(sIn, 'c', 'open read'); 105 rcOut = stream(sOut, 'c', 'open write'); 106 if (pos('READY', rcIn) <> 1 | pos('READY', rcOut) <> 1) then 107 do 108 call stream(sIn, 'c', 'close'); 109 call stream(sOut, 'c', 'close'); 110 call failure 5, 'failed to open in or/and out file. rcIn='rcIn 'rcOut='rcOut; 111 end 112 113 /* 114 * Copy loop which updates ODIN32_BUILD_NR when found. 115 */ 116 fFound = 0; 117 do while (lines(sIn)) 118 sLine = linein(sIn); 119 if (\fFound & substr(strip(sLine), 1, 24) = '#define ODIN32_BUILD_NR ') then 120 do 121 parse var sLine '#define ODIN32_BUILD_NR' iOldBuildNr sComment; 122 sComment = strip(sComment); 123 sLine = '#define ODIN32_BUILD_NR '||iBuildNr||' '||sComment; 124 say 'newln:' sLine; 125 fFound = 1; 126 end 127 call lineout sOut, sLine; 128 end 129 call lineout sOut, ''; 130 call stream sIn, 'c', 'close'; 131 call stream sOut, 'c', 'close'; 132 rc = 0; 133 end 86 134 else if (sOperation = 'commit') then 87 135 do -
trunk/tools/DailyBuild/odin32build.cmd
r21298 r21458 14 14 */ 15 15 16 /* 17 * Parse parameters. 18 */ 19 parse arg sSMP 20 16 21 /* debug build */ 17 22 'SET DEBUG=1'; 18 23 'nmake dep'; 19 24 if (RC <> 0) then call failure rc, 'Make failed (dep).'; 20 'nmake NODEBUGINFO=1 ';25 'nmake NODEBUGINFO=1 'sSMP; 21 26 if (RC <> 0) then call failure rc, 'Make debug failed.'; 22 27 23 28 /* release build */ 24 29 'SET DEBUG='; 25 'nmake ' ;30 'nmake 'sSMP; 26 31 if (RC <> 0) then call failure rc, 'Make release failed .'; 27 32
Note:
See TracChangeset
for help on using the changeset viewer.