Changeset 838 for trunk/server/source3
- Timestamp:
- Jan 13, 2014, 5:36:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/build.cmd
r822 r838 109 109 110 110 if pos("BRAND", cmdline) > 0 then do 111 Brand = "YES"111 brand = "YES" 112 112 build_parms = build_parms||' BRAND' 113 113 end 114 114 if pos("CONF", cmdline) > 0 then do 115 Conf = "YES"115 conf = "YES" 116 116 build_parms = build_parms||' CONF' 117 117 end 118 119 /* test to see, if we need to brand */ 120 call NeedBranding 118 121 119 122 say "Building with: " || build_parms … … 122 125 123 126 if (versionh.0 = 0) | (conf = "YES") | (brand = "YES") then do 124 svninfo = ".\svninfo"125 address cmd 'svn status -q -u | grep "^Status against revision:" | sed -e "s/Status against revision: *//">'svninfo126 revision = strip(translate(linein(svninfo)))127 ok = stream(svninfo,'c','close')128 127 call brand revision 129 128 end … … 353 352 address cmd 'SET LIBS=-lsocket -lsyslog' */ 354 353 return 354 355 /** 356 * see if we need to brand again 357 */ 358 NeedBranding: procedure expose revision brand build_parms 359 svninfo = "svninfo" 360 svninfo_tmp = "svninfo_tmp" 361 address cmd 'svn status -q -u | grep "^Status against revision:" | sed -e "s/Status against revision: *//">'svninfo_tmp 362 revision = strip(translate(linein(svninfo_tmp))) 363 ok = stream(svninfo_tmp,'c','close') 364 revision_old = strip(translate(linein(svninfo))) 365 ok = stream(svninfo,'c','close') 366 if revision_old \= revision then do 367 if brand \= "YES" then do 368 build_parms = build_parms ||' BRAND' 369 brand = "YES" 370 end 371 ok = SysFileDelete(svninfo) 372 'ren ' || svninfo_tmp || ' ' || svninfo 373 end 374 else do 375 ok = SysFileDelete(svninfo_tmp) 376 end 377 378 return
Note:
See TracChangeset
for help on using the changeset viewer.