Changeset 851
- Timestamp:
- Feb 18, 2014, 3:43:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/build.cmd
r839 r851 25 25 don't check for env anymore, use sh only */ 26 26 /* version 1.0.1 from 13.01.2014 Silvan (always brand when svn rev changes */ 27 /* version 1.0.2 from 18.02.2014 Silvan (create xqs files for exceptq */ 27 28 28 29 /* load the sysfuncs if not already loaded */ … … 33 34 34 35 /* init the version string (don't forget to change) */ 35 version = "1.0. 1"36 version_date = "1 3.01.2014"36 version = "1.0.2" 37 version_date = "18.02.2014" 37 38 38 39 '@echo off' … … 176 177 177 178 if make = "CLEAN" then do 179 call XQSPart "del" 178 180 address cmd "make clean" 179 181 end … … 181 183 if make <> "" then do 182 184 address cmd 'make -j 'jobs' 2>&1 | tee 'logFile 185 call XQSPart "crt" 183 186 end 184 187 185 188 if pos("ZIP", cmdline) > 0 then do 186 say 'Creating "samba-'translate(verstring,'-',' ')'.zip"' 187 ok = SysFileDelete('samba-'translate(verstring,'-',' ')'.zip') 189 190 zipName = "samba-"translate(verstring, '-',' ') 191 say 'Creating "'zipName'.zip"' 192 ok = SysFileDelete(zipName'.zip') 193 ok = SysFileDelete(zipName'_xqs.zip') 194 188 195 'cd .\bin' 189 196 'md .\samba' … … 194 201 'copy ..\..\..\codepages\*.dat .\codepage\*' 195 202 'cd ..' 196 'zip -rpo9 samba-'translate(verstring,'-',' ')'.zip .\samba\*.exe .\samba\*.dll .\samba\codepage\*.dat'203 'zip -rpo9 'zipName'.zip .\samba\*.exe .\samba\*.dll .\samba\codepage\*.dat' 197 204 'cd .\samba' 198 205 'move * .. >NUL' … … 201 208 'cd ..' 202 209 'rd .\samba' 210 'zip -rpo9 'zipName'_xqs.zip *.xqs' 203 211 'cd ..' 204 212 say 'Created ZIP package' … … 378 386 379 387 return 388 389 /** 390 * delete or create the xqs files 391 */ 392 XQSPart: procedure 393 parse arg what 394 395 binDir = 'bin' 396 what = translate(what) 397 398 if what = 'DEL' then do 399 say "Delete all xqs files in " || binDir 400 ending = '*.xqs' 401 end 402 403 if what = 'CRT' then do 404 say "Create xqs files for all map files in " || binDir 405 ending = '*.map' 406 end 407 408 ok = SysFileTree(binDir || '\' || ending,files.,"FO") 409 do i = 1 to files.0 410 411 if what = 'DEL' then do 412 ok = SysFileDelete(files.i) 413 end 414 if what = 'CRT' then do 415 address cmd "mapxqs -o " || substr(files.i, 1, length(files.i)-3) || "xqs " || files.i 416 end 417 418 end 419 420 return
Note:
See TracChangeset
for help on using the changeset viewer.