Changeset 721


Ignore:
Timestamp:
Apr 30, 2010, 10:12:02 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

packaging: Added -B -D and -W command line options to make_packages.cmd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/make_packages.cmd

    r544 r721  
    4141G.Continue      = 0
    4242G.SkipConfigure = 0
     43G.SkipBuild     = 0
     44G.SkipBuildDocs = 0
    4345G.SkipInstall   = 0
     46G.SkipWPI       = 0
    4447G.QtBuildDate   = ''
    4548
     
    232235    end
    233236
     237    /* build Qt */
     238
     239    call SaySay 'Building Qt in "'G.QtBuildDir'"...'
     240
     241    if (\G.SkipBuild) then do
     242        if (Exec('make', G.QtBuildDir, '>'G.LogFile) \= 0) then
     243            call Done 1
     244    end
     245    else
     246        call SayWrn '...skipped'
     247
     248    /* build Qt docs */
     249
     250    call SaySay 'Building Qt documentation in "'G.QtBuildDir'"...'
     251
     252    if (\G.SkipBuildDocs) then do
     253        if (Exec('make docs', G.QtBuildDir, '>'G.LogFile) \= 0) then
     254            call Done 1
     255    end
     256    else
     257        call SayWrn '...skipped'
     258
    234259    /* fake-install Qt to gather everything for distribution */
    235260
     
    245270        call SayWrn '...skipped'
    246271
    247     /* make install actually recreates the full directory tree in INSTALL_ROOT,
     272    /* make install recreates the full directory tree in INSTALL_ROOT,
    248273     * get the real install root that points directly to the installed Qt tree */
    249274    G.QtInstDir = G.QtInstDir||filespec('P', G.QtBuildDir)||filespec('N', G.QtBuildDir)
    250275
    251276    call SaySay 'Adjusted install directory to "'G.QtInstDir'"'
    252 
    253     /* generate the proper qt.conf for the distribution */
    254277
    255278    /* Set up common environment */
     
    268291    call SetEnv 'ZIP_ROOT', G.OutDirZip
    269292
    270     /* Do the rest */
    271 
    272     call CreateAllWPI
     293    /* Create WPI archives */
     294
     295    call SaySay 'Creating WPI archives in "'G.OutDirWpi'"...'
     296    if (\G.SkipWPI) then do
     297        call CreateAllWPI
     298    end
     299    else
     300        call SayWrn '...skipped'
    273301
    274302    call SaySay G.ScriptFile": END"
     
    371399                when (o == 'c') then G.Continue = 1
    372400                when (o == 'C') then G.SkipConfigure = 1
     401                when (o == 'B') then G.SkipBuild = 1
     402                when (o == 'D') then G.SkipBuildDocs = 1
    373403                when (o == 'I') then G.SkipInstall = 1
     404                when (o == 'W') then G.SkipWPI = 1
    374405                when (o == '-date-override') then do
    375406                    i = i + 1
     
    402433    drop G.opts.0
    403434
    404     if (G.QtBuildDir == '' | G.QtBuildRev == '' | G.QtBuildName == '' |,
    405         G.OutDir == '') then
     435    if (G.QtBuildDir == '' | G.QtBuildRev == '' | G.OutDir == '') then
    406436        call Usage
    407437
     
    436466    say
    437467    say '  -c            : Continue a failed packaging process'
    438     say '  -C            : Skip configuring the Qt build'
    439     say '  -I            : Skip fake-installing the Qt build'
     468    say '  -C            : Skip the configure stage'
     469    say '  -B            : Skip the build stage'
     470    say '  -D            : Skip the build documentation stage'
     471    say '  -I            : Skip the fake-install stage'
     472    say '  -W            : Skip creation of the WPI archives'
    440473
    441474    call Done 0
Note: See TracChangeset for help on using the changeset viewer.