Ignore:
Timestamp:
Apr 6, 2012, 7:11:03 PM (13 years ago)
Author:
Herwig Bauernfeind
Message:

Support parallel build jobs, show build time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/build.cmd

    r680 r695  
    99/* version 0.3.3 from 05.11.2011 Herwig (add support for libc064) */
    1010/* version 0.3.4 from 23.11.2011 Herwig (simplify libc switching) */
    11 /* version 0.3.5 from 23.11.2011 Herwig (brand befor configure, if version.h is missing) */
    12 
     11/* version 0.3.5 from 23.11.2011 Herwig (brand before configure, in case
     12                                         version.h is missing) */
     13/* version 0.3.6 from 06.04.2012 Herwig (support parallel jobs, show build
     14                                         time upon completion) */
     15                                         
    1316/* load the sysfuncs if not already loaded */
    1417if (RxFuncQuery('SysLoadFuncs') = 1) then
     
    1922
    2023/* init the version string (don't forget to change) */
    21 version = "0.3.5"
    22 version_date = "23.11.2011"
     24version = "0.3.6"
     25version_date = "06.04.2012"
     26
     27/* number of make jobs to execute at the same time */
     28jobs = "2"
    2329
    2430'@echo off'
    2531parse upper arg cmdline
     32ok = time('R')
    2633
    2734say "Samba for eCS (OS/2) build script v"   || version || " from " || version_date
     
    165172if make <> "" then do
    166173    say build_parms
    167     address cmd 'make 2>&1 | tee build.log'
     174    address cmd 'make -j 'jobs' 2>&1 | tee build.log'
    168175end
    169176
     
    185192end
    186193/* Default exit point */
    187 say "All done."
     194reqtime = format(time('E'),,0)
     195reqmin = reqtime%60
     196reqsec = reqtime//60
     197say "All done, took "format(reqmin,,0)' min 'format(reqsec,,0)" sec."
    188198exit 0
    189199
Note: See TracChangeset for help on using the changeset viewer.