Changeset 95


Ignore:
Timestamp:
May 18, 2006, 9:56:56 AM (19 years ago)
Author:
dmik
Message:

configure.cmd: Fixed compiler configuration routines ('could not open file...' because of the greedy evaluation of logical expressions in REXX)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/configure.cmd

    r94 r95  
    791791     */
    792792   
    793     if (\FileExists(qmodules_h) |,
    794         CompareFileToVar(qmodules_h, ModulesHeader) \= 0) then do
     793    create = \FileExists(qmodules_h)
     794    if (\create) then create = CompareFileToVar(qmodules_h, ModulesHeader) \= 0
     795    if (create) then do
    795796        call DeleteFile qmodules_h
    796797        call charout qmodules_h, ModulesHeader
     
    798799    end
    799800
    800     if (\FileExists(qconfig_h) |,
    801         CompareFileToVar(qconfig_h, ConfigHeader) \= 0) then do
     801    create = \FileExists(qconfig_h)
     802    if (\create) then create = CompareFileToVar(qconfig_h, ConfigHeader) \= 0
     803    if (create) then do
    802804        call DeleteFile qconfig_h
    803805        call charout qconfig_h, ConfigHeader
     
    805807    end
    806808
    807     if (\FileExists(qconfig_cpp) |,
    808         CompareFileToVar(qconfig_cpp, ConfigSource) \= 0) then do
     809    create = \FileExists(qconfig_cpp)
     810    if (\create) then create = CompareFileToVar(qconfig_cpp, ConfigSource) \= 0
     811    if (create) then do
    809812        call DeleteFile qconfig_cpp
    810813        call charout qconfig_cpp, ConfigSource
     
    812815    end
    813816   
    814     call CopyFile QuotePath(G.!QTDirP)'\qmake\"Makefile.os2-g++"',
     817    call CopyFile QuotePath(G.!QTDirP)'\qmake\"Makefile.os2-g++"',,
    815818                  G.!QMakeMakefile
    816819
    817     call CopyFile QuotePath(G.!QTDirP)'\"Makefile.os2-g++"',
     820    call CopyFile QuotePath(G.!QTDirP)'\"Makefile.os2-g++"',,
    818821                  G.!Makefile
    819822
     
    849852    if (FileExists(build_log)) then do
    850853        call DeleteFile build_log'.bak'
    851         call CopyFile build_log build_log'.bak'
     854        call CopyFile build_log, build_log'.bak'
    852855        call DeleteFile build_log
    853856    end
Note: See TracChangeset for help on using the changeset viewer.