Changeset 851


Ignore:
Timestamp:
Feb 18, 2014, 3:43:13 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.6: more exceptq work Ticket #236

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/build.cmd

    r839 r851  
    2525                                         don't check for env anymore, use sh only */
    2626/* 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 */
    2728                                         
    2829/* load the sysfuncs if not already loaded */
     
    3334
    3435/* init the version string (don't forget to change) */
    35 version      = "1.0.1"
    36 version_date = "13.01.2014"
     36version      = "1.0.2"
     37version_date = "18.02.2014"
    3738
    3839'@echo off'
     
    176177
    177178if make = "CLEAN" then do
     179    call XQSPart "del"
    178180    address cmd "make clean"
    179181end
     
    181183if make <> "" then do
    182184    address cmd 'make -j 'jobs' 2>&1 | tee 'logFile
     185    call XQSPart "crt"
    183186end
    184187
    185188if 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
    188195    'cd .\bin'
    189196    'md .\samba'
     
    194201    'copy ..\..\..\codepages\*.dat .\codepage\*'
    195202    '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'
    197204    'cd .\samba'
    198205    'move * .. >NUL'
     
    201208    'cd ..'
    202209    'rd .\samba'
     210    'zip -rpo9 'zipName'_xqs.zip *.xqs'
    203211    'cd ..'
    204212    say 'Created ZIP package'
     
    378386
    379387    return
     388
     389/**
     390 * delete or create the xqs files
     391 */
     392XQSPart: 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.