Changeset 537


Ignore:
Timestamp:
Feb 5, 2010, 2:23:12 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

configure.cmd: Introduced --official-build and --official-build-quiet options (supersede the official_build file in the root dir).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r507 r537  
    167167    end
    168168
    169     /* read the build number if any */
    170     build = linein(G.RelPath"\official_build")
    171     if (build \== "") then do
    172         G.OfficialBuild = 1
    173         G.QT_BUILD_VERSION = build
    174         G.QT_CONFIG = "official_build"
    175         call SaySay
    176         call SaySay "WARNING:"
    177         call SaySay "You are going to configure an official build of Qt4 for OS/2!"
    178         call SaySay "Full version number is: "G.QT_VERSION"."G.QT_BUILD_VERSION
    179         call SaySay
    180         call SaySay "If you understand what it means and want to continue,"
    181         call SaySay "then type YES below. Otherwise, press Enter or Ctrl-C."
    182         call SaySay
    183         call SaySay "Continue? ", 1
    184         str = linein()
    185         if (str \== "YES") then
    186             call Done 255
    187     end
    188     else do
    189         build = linein(G.RelPath"\build")
    190         if (build \== "") then
     169    /* grab the official build option if any
     170     * (@todo move this to the command line parsing code when it's done) */
     171    build = word(aArgs, 1)
     172    if (build == "--official-build" |,
     173        build == "--official-build-quiet") then do
     174        quiet = (build == "--official-build-quiet")
     175        build = word(aArgs, 2)
     176        if (build \= '') then do
     177            G.OfficialBuild = 1
    191178            G.QT_BUILD_VERSION = build
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
    192196    end
    193197
     
    320324    G.PLATFORM = GetEnv("QMAKESPEC")
    321325    G.QT_CROSS_COMPILE = "no"
    322     G.OPT_CONFIRM_LICENSE = "no"
     326
     327    if (G.OfficialBuild) then G.OPT_CONFIRM_LICENSE = "yes"
     328    else G.OPT_CONFIRM_LICENSE = "no"
     329
    323330    G.OPT_SHADOW = "maybe"
    324331    G.OPT_FAST = "auto"
Note: See TracChangeset for help on using the changeset viewer.