Changeset 21458 for trunk/tools
- Timestamp:
- Sep 24, 2010, 5:23:27 PM (15 years ago)
- Location:
- trunk/tools
- Files:
-
- 4 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 -
trunk/tools/install/makefile
r5425 r21458 16 16 STATIC_CRT = 1 17 17 NO_MAIN_BIN_COPY = 1 18 CLEANEXTRAS = odin32inst.wis *.wpi 18 CLEANEXTRAS = odin32inst.wis *.wpi config.sys 19 19 20 20 -
trunk/tools/install/odin.cmd
r21443 r21458 78 78 end 79 79 80 /* empty (dummy) config.sys for package#5 */ 81 rc = lineout('config.sys', ''); 82 rc = lineout('config.sys'); 83 80 84 rc = PackFiles('odin32inst.wis', asArg.i, MakeArchiveName(asArg.i)); 81 85 if (rc <> 0) then … … 128 132 129 133 /* create warpin installation script */ 130 rc = lineout(sInstFile, '<WARPIN VERSION=" 0.9.6" OS="OS2_3x">');134 rc = lineout(sInstFile, '<WARPIN VERSION="1.0.19" OS="OS2_3x">'); 131 135 rc = lineout(sInstFile, '<HEAD>'); 132 136 rc = lineout(sInstFile, '<TITLE>Odin32 'sType' - 'sVer'</TITLE>'); … … 157 161 rc = lineout(sInstFile, title); 158 162 rc = lineout(sInstFile, ' EXECUTE="odininst.exe"'); 159 rc = lineout(sInstFile, ' C ONFIGSYS="LIBPATH=$(1)\SYSTEM32 | ADDRIGHT"');160 rc = lineout(sInstFile, ' CONFIGSYS="SET PATH=$(1)\SYSTEM32 | ADDRIGHT"');163 rc = lineout(sInstFile, ' CLEARPROFILE="USER\KLIBC\OdinPath"'); 164 rc = lineout(sInstFile, ' WRITEPROFILE="USER\KLIBC\OdinPath|$(2)"'); 161 165 rc = lineout(sInstFile, ' >Installation of Odin System files .</PCK>'); 162 166 rc = lineout(sInstFile, ''); … … 185 189 rc = lineout(sInstFile, ''); 186 190 end 191 192 rc = lineout(sInstFile, '<PCK INDEX=5'); 193 rc = lineout(sInstFile, ' PACKAGEID="Odin\Odin\Changes to Config.sys\'sPackVer'"'); 194 rc = lineout(sInstFile, ' TARGET="C:\ODIN\SYSTEM32"'); 195 rc = lineout(sInstFile, ' FIXED'); 196 title = " TITLE=""Update Config.sys PATH and LIBPATH"""; 197 rc = lineout(sInstFile, title); 198 rc = lineout(sInstFile, ' CONFIGSYS="LIBPATH=$(1)\SYSTEM32 | ADDRIGHT"'); 199 rc = lineout(sInstFile, ' CONFIGSYS="SET PATH=$(1)\SYSTEM32 | ADDRIGHT"'); 200 rc = lineout(sInstFile, ' >Updates PATH and LIBPATH entries in Config.sys.</PCK>'); 201 rc = lineout(sInstFile, ''); 187 202 188 203 rc = lineout(sInstFile, '</HEAD>'); … … 542 557 call lineout sWICFile, '4 -c'||sDllDir '*.sym'; 543 558 559 560 /* 561 * Packet 5 is only for config.sys line but it seems like we have to add something. 562 */ 563 call lineout sWICFile, '5 config.sys'; 564 565 544 566 /* 545 567 * Close input file.
Note:
See TracChangeset
for help on using the changeset viewer.