Changeset 1281
- Timestamp:
- Nov 18, 2008, 6:19:46 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseEdit.cmd
r1137 r1281 13 13 * which need a version number and/or date/time: 14 14 * *.def, file_id.diz, dll\version.h, warpin\fm2.wis 15 * 16 * Change log: 17 * 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 18 * - Use SysTempFilename instead of hard-coded temp file name 19 * - Commented out support for changing version in FM2.WIS 15 20 * 16 21 */ … … 40 45 ext = substr(translate(file), lastpos('.', file) +1) /* if no extension, ext <-- uppercase(file) */ 41 46 parse value date('s') with year 5 month 7 day 42 tmpfile = 'redit.bak' /* If SysTempFilename is used, SysLoadFuncs first */ 43 '@if exist' tmpfile 'del' tmpfile 47 call RxFuncAdd 'SysTempFilename', 'REXXUTIL', 'SysTempFilename' 48 tmpfile = SysTempFilename('redittmp.???') 44 49 'copy' file tmpfile 50 if rc \= 0 then 51 do 52 say;say 'Unable to copy to ' || tmpfile || '!! Proceesing aborted.' 53 exit 1 54 end 45 55 'del' file 46 56 select … … 56 66 do 57 67 'sed -r "/FM\/2 v/s/(FM\/2 v)[0-9]+\.[0-9.]+/\1' || ver || '/" ' || tmpfile || ' >' file 58 end59 when ext = 'WIS' then60 do61 'sed -r -e "s/(PACKAGEID=.*Base\\)[0-9\]+/\1' || warpin_db_ver || '/" -e "s/(PACKAGEID=.*Debugging support\\)[0-9\]+/\1' || warpin_db_ver || '/" ' || tmpfile || ' >' file62 68 end 63 69 when right(ext, length(mkstr_makefile)) = mkstr_makefile then -
trunk/ReleaseTool.cmd
r1276 r1281 19 19 * warpin packageid/database version number(s) 20 20 * 21 * This program uses the following enviromental variables 21 * This program uses the following enviromental variables, if set 22 22 * SVN_EDITOR to set the text editor that is called 23 23 * SVN_TESTER to call a cmd file that copies files to your test directory … … 25 25 * SVN_KILL allows you to set a program to kill any running version of FM/2 26 26 * killpid is used as default (must be in path) 27 * 28 * Change log: 29 * 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 30 * - Use same file list for option 8 and option 20 31 * - Set the file list for option 8 and option 20 once, in Init routine 32 * - Removed fm2.wis from the file list for option 8 and option 20 (not needed) 33 * - Added optional commit to option 20 34 * - Removed extraneous 'pause' in option 20 35 * - Fixed a bug in option 0 (run a command shell) 27 36 * 28 37 */ … … 41 50 42 51 43 globals = 'cmd prompt editor editorcmds killpid tester killtarget '52 globals = 'cmd prompt editor editorcmds killpid tester killtarget version_filelist' 44 53 45 54 parse arg ver next_ver … … 62 71 if entry \= 'N' then 63 72 do 73 signal off Error 64 74 '@'cmd '/c 'action 75 signal on Error 65 76 action = -1 /* Skip SELECT below */ 66 77 end … … 69 80 when action = 0 then 70 81 do /* Open a command line */ 82 signal off Error 71 83 if right(translate(cmd), 8) = '4OS2.EXE' then 72 84 '@' || cmd 'prompt [''exit'' to return to ReleaseTool]' || prompt … … 76 88 '@' || cmd 77 89 end 90 signal on Error 78 91 end 79 92 when action = 1 then … … 111 124 if strip(ver) = '' then 112 125 ver = GetVer('the pending release') 113 filelist = 'av2.def databar.def dirsize.def dll\fm3dll.def dll\fm3res.def eas.def' 114 filelist = filelist 'fm3.def fm4.def global.def ini.def killproc.def sysinfo.def' 115 filelist = filelist 'undel.def vcollect.def vdir.def viewinfs.def vtree.def' 116 filelist = filelist 'warpin\fm2.wis file_id.diz dll\version.h warpin\makefile dll\internal\makefile' 117 do f = 1 to words(filelist) 118 call ReleaseEdit ver word(filelist, f) 126 do f = 1 to words(version_filelist) 127 call ReleaseEdit ver word(version_filelist, f) 119 128 say 120 129 end 121 filelist= 'HISTORY README'122 do f = 1 to words( filelist)123 file = word( filelist, f)130 version_filelist2 = 'HISTORY README' 131 do f = 1 to words(version_filelist2) 132 file = word(version_filelist2, f) 124 133 call SysCls 125 134 say;say;say … … 155 164 when action = 8 then 156 165 do /* Commit code */ 157 svn_cmd = 'svn commit' 158 say;say;say 159 say 'Online and OK to execute: 'svn_cmd'? (Y/n)' 160 if translate(SysGetKey()) \= 'N' then svn_cmd 166 call CommitifOK 161 167 end 162 168 when action = 9 then … … 177 183 do /* Test the binaries */ 178 184 if tester == '' then 179 do185 do 180 186 call NotYet action 181 187 say 'Test the binaries.' … … 186 192 say 'You should, where possible, also verify that any bugs' 187 193 say 'that were fixed for the release are working as expected.' 188 end 189 else 194 end 195 else 196 do /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files 197 to test directory and change to that directory must type exit to return here*/ 198 killpid killtarget 199 cmd tester 200 end 201 end 202 when action = 12 then 203 do /* Lxlite */ 204 'wmake lxlite' 205 end 206 when action = 13 then 207 do /* Test the release code */ 208 if tester == '' then 209 do 210 call NotYet action 211 say 'Test the (compressed) release code.' 212 say 213 say 'Verify that all exe''s continue to load and run after being compressed.' 214 end 215 else 190 216 do /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files 191 217 to test directory and change to that directory must type exit to return here*/ … … 194 220 end 195 221 end 196 when action = 12 then197 do /* Lxlite */198 'wmake lxlite'199 end200 when action = 13 then201 do /* Test the release code */202 if tester == '' then203 do204 call NotYet action205 say 'Test the (compressed) release code.'206 say207 say 'Verify that all exe''s continue to load and run after being compressed.'208 end209 else210 do /*kills FM/2 using killpid from FM/2 utils (must be in path) and run cmd to copy files211 to test directory and change to that directory must type exit to return here*/212 killpid killtarget213 cmd tester214 end215 end216 222 when action = 14 then 217 223 do /* Build distro */ 218 224 call SysCls 219 if strip(ver) = '' then 220 ver = GetVer('the pending release') 221 'wmake dist FM2_VER=-' || WPI_ver(ver) 225 'wmake dist' 222 226 end 223 227 when action = 15 then … … 276 280 when action = 20 then 277 281 do /* Set next version */ 278 if strip(next_ver) = '' then 279 next_ver = GetVer('the next release') 280 filelist = 'av2.def databar.def dirsize.def dll\fm3dll.def dll\fm3res.def eas.def fm3.def fm4.def global.def ini.def killproc.def sysinfo.def undel.def vcollect.def vdir.def viewinfs.def vtree.def warpin\fm2.wis file_id.diz dll\version.h' 281 do f = 1 to words(filelist) 282 call ReleaseEdit next_ver word(filelist, f) 282 next_ver = GetVer('the next release') 283 do f = 1 to words(version_filelist) 284 call ReleaseEdit next_ver word(version_filelist, f) 283 285 say 284 '@pause'285 286 end 286 end 287 /* 288 when action = 21 then 289 do 290 end 291 */ 287 call CommitifOK version_filelist 288 end 292 289 otherwise 293 290 nop 294 291 end 295 292 say;say;say 296 '@pause' 293 if action \= 0 then 294 '@pause' 297 295 end 298 296 … … 329 327 330 328 editor = value('SVN_EDITOR',,'OS2ENVIRONMENT') 331 if editor == '' then332 editor = 'tedit'333 upperwrd1 = translate(word(editor, 1))334 if upperwrd1 = 'EPM' | upperwrd1 = 'EPM.EXE' then335 editorcmds = "'3'"336 else337 editorcmds = ""338 339 329 cmd = value('COMSPEC',,'OS2ENVIRONMENT') 340 330 prompt = value('PROMPT',,'OS2ENVIRONMENT') 341 331 tester = value('SVN_TESTER',,'OS2ENVIRONMENT') 342 332 killpid = value('SVN_KILL',,'OS2ENVIRONMENT') 333 334 editorcmds = "" 335 if editor == '' then 336 editor = 'tedit' 337 else 338 do 339 upperwrd1 = translate(word(editor, 1)) 340 if upperwrd1 = 'EPM' | upperwrd1 = 'EPM.EXE' then 341 editorcmds = "'3'" 342 end 343 343 if killpid == '' then 344 344 killpid = 'killpid' 345 345 killtarget = ' FM/2' 346 version_filelist = 'av2.def databar.def dirsize.def dll\fm3dll.def dll\fm3res.def' 347 version_filelist = version_filelist 'dll\version.h eas.def fm3.def fm4.def global.def ini.def' 348 version_filelist = version_filelist 'killproc.def sysinfo.def undel.def vcollect.def vdir.def' 349 version_filelist = version_filelist 'viewinfs.def vtree.def file_id.diz' 350 version_filelist = version_filelist 'warpin\makefile dll\internal\makefile' 346 351 return 347 352 … … 552 557 signal ErrorExit 553 558 554 559 CommitIfOK: procedure 560 parse arg filelist 561 svn_cmd = 'svn commit' 562 say;say;say 563 say 'Online and OK to execute: 'svn_cmd'? (Y/n)' 564 if translate(SysGetKey()) \= 'N' then svn_cmd filelist 565 return -
trunk/dll/makefile
r1242 r1281 42 42 # 22 Jul 08 SHL Change from dllsyms to syms target for consistency 43 43 # 06 Oct 08 SHL Add missing -dDEBUG= to CFLAGS; rework lxlite suppress logic 44 # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 44 45 45 46 # Environment: … … 67 68 68 69 !if $(USE_RC) 69 RC = rc 70 !else 71 RC = wrc 70 RC = rc -n 71 !else 72 RC = wrc -q 72 73 !endif 73 74 … … 255 256 256 257 $(BASERES).res: *.rc *.dlg fm3dll2.h fm3dlg.h $(ICONS) 258 @echo. & echo Compiling resource: $* & echo. 257 259 $(RC) $(RCFLAGS) $* 258 260 !if $(USE_RC) … … 265 267 @echo $(LINK) @$(BASERES).lrf @$(BASERES).def 266 268 $(LINK) @$(BASERES).lrf @$(BASERES).def 269 @echo. & echo Compiling resource: $@ & echo. 267 270 $(RC) $(RCFLAGS2) $(BASERES).res $@ 268 271 bldlevel $@ … … 297 300 lxlite $@ /c:minstub 298 301 !endif 302 @echo. & echo Compiling resource: $@ & echo. 299 303 $(RC) $(RCFLAGS2) $(BASERES).res $@ 300 304 !ifndef DEBUG -
trunk/makefile
r1259 r1281 23 23 # 22 Jul 08 SHL Pass FORTIFY options to subordinate makefiles 24 24 # 25 Oct 08 SHL Sanitize DEBUG usage 25 # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 25 26 26 27 # Environment - see makefile_pre.mk and dll\makefile … … 50 51 syms: exesyms dllsyms .symbolic 51 52 52 dist: lxlitedll $(BASE) lxliteexe symswpi .symbolic53 dist: all syms lxlite wpi .symbolic 53 54 54 55 # Only update resources 55 56 res: .symbolic 56 57 @echo Updating resources only 57 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=158 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) MAKERES=1 58 59 59 60 # make DLL components … … 61 62 dll: .symbolic 62 63 cd dll 63 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)64 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) 64 65 cd .. 65 66 66 67 dllsyms: .symbolic 67 68 cd dll 68 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) syms69 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) syms 69 70 cd .. 70 71 … … 78 79 79 80 allexe: *.mak .symbolic 80 @for %f in ($<) do $(MAKE) - f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)81 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) 81 82 82 83 # make SYM files 83 84 84 85 exesyms: *.mak .symbolic 85 @for %f in ($<) do $(MAKE) - f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym86 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym 86 87 87 88 # make WPI files … … 89 90 wpi: .symbolic 90 91 cd warpin 91 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS)92 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS) 92 93 cd .. 93 94 … … 98 99 lxliteexe: *.mak .symbolic 99 100 !ifndef DEBUG 100 @for %f in ($<) do $(MAKE) - f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite101 @for %f in ($<) do $(MAKE) -h -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 101 102 !endif 102 103 … … 105 106 !ifndef DEBUG 106 107 cd dll 107 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite108 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 108 109 cd .. 109 110 !endif … … 111 112 cleanobj: .symbolic 112 113 cd dll 113 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj114 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) cleanobj 114 115 cd .. 115 116 -del *.obj … … 117 118 clean:: .symbolic 118 119 cd dll 119 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) clean120 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) clean 120 121 cd .. 121 122 -del *.exe … … 129 130 distclean: clean .symbolic 130 131 cd warpin 131 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) distclean132 $(MAKE) -h $(__MAKEOPTS__) $(DEBUG_OPT) distclean 132 133 cd .. 133 134 -
trunk/makefile_post.mk
r1259 r1281 7 7 # 23 Feb 08 JBS Add support for building SYM files (Ticket 226) 8 8 # 25 Oct 08 JBS Rework DEBUG usage to match what C code expects 9 # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 9 10 10 11 !ifndef MAKERES … … 16 17 $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit 17 18 $(LINK) @$(BASE).lrf @$(BASE).def 19 @echo. & echo Compiling resource: $@ & echo. 18 20 $(RC) $(RCFLAGS2) $(BASE).res $@ 19 21 bldlevel $@ … … 42 44 lxlite $@ /c:minstub 43 45 !endif 46 @echo. & echo Compiling resource: $@ & echo. 44 47 $(RC) $(RCFLAGS2) $(BASE).res $@ 45 48 !ifndef DEBUG -
trunk/makefile_pre.mk
r1259 r1281 15 15 # 22 Jul 08 SHL Pass FORTIFY to subordinate makefiles 16 16 # 06 Oct 08 SHL Pass DEBUG in CFLAGS; clean up USE_RC usage 17 # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 17 18 18 19 # Environment: see dll\makefile … … 33 34 34 35 !ifdef USE_RC 35 RC = rc 36 RC = rc -n 36 37 !else 37 RC = wrc 38 RC = wrc -q 38 39 !endif 39 40 … … 128 129 !ifdef USE_RC 129 130 .rc.res: 131 @echo. & echo Compiling resource: $*.rc & echo. 130 132 $(RC) $(RCFLAGS) $*.rc 131 133 ren $*.res $*.res 132 134 !else 133 135 .rc.res: .AUTODEPEND 136 @echo. & echo Compiling resource: $*.rc & echo. 134 137 $(RC) $(RCFLAGS) $*.rc 135 138 !endif
Note:
See TracChangeset
for help on using the changeset viewer.