Changeset 1256


Ignore:
Timestamp:
Oct 23, 2008, 4:06:46 PM (17 years ago)
Author:
John Small
Message:

Ticket 293: Add chksed target to check for sufficient SED and GREP and
improve support for the "-a" wmake option.

Location:
trunk/warpin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/ckfiles.cmd

    r1234 r1256  
    77 * these files can first be staged and then added to the WPI file.
    88 *
     9 * Change log:
     10 *      23 Oct 08 JBS Ticket 293: Improved support for -a wmake option
    911 */
    1012
     
    1416signal on novalue
    1517
    16 parse arg args
    17 wpi_file          =  strip(args)
     18parse arg '"MAKEOPTS=' make_args '"' wpi_file
     19wpi_file          =  strip(wpi_file)
    1820wis_file          =  'fm2.wis'
    1921if stream(wpi_file, 'c', 'query exists') == '' then  /* If target WPI file  does not exist, force WIS rebuild */
     
    3234      say
    3335      say 'Exiting...'
    34       return
     36      return 1
    3537   end
    3638out_file_date_time = GetDate(out_file)
    3739wpi_file_date_time = GetDate(wpi_file)
    3840
    39 if in_file_date_time > out_file_date_time | ,
     41if pos('A', translate(make_args)) > 0 | ,
     42   in_file_date_time > out_file_date_time | ,
    4043   out_file_date_time = dummy_date_time  | ,
    4144   wpi_file_date_time = dummy_date_time         then
  • trunk/warpin/makefile

    r1239 r1256  
    1 # warpin\makefile - build the FM/2 Warpin installation file: FM2.WIS
     1# warpin\makefile - build the FM/2 Warpin installation file: FM2$(FM2_VER).WPI
     2
    23# $Id$
    34
     
    1415# 07 Oct 08 JBS Changed SED command to use script file and to eliminate
    1516#               extraneous blank lines with the included files.
     17# 23 Oct 08 JBS Ticket 293: Add "chksed" target to check for sufficient SED and GREP and
     18#               improve support for -a option in the checkfiles target.
    1619
    1720!ifndef FM2_VER                  # if defined on wmake command, use it
     
    6164checkfiles: .symbolic
    6265   @echo Checking to see if files have been changed...
    63     ckfiles fm2$(FM2_VER).wpi
     66    ckfiles "MAKEOPTS=$(__MAKEOPTS__)" fm2$(FM2_VER).wpi
    6467
    65 fm2.wis: fm2.wis.in fm2utils\fm2utils.doc fm2utils\license.txt makefile sed.in
     68chksed: .symbolic
     69   @sed -V <nul 2>&1 | grep -i "GNU sed" >nul 2>&1 || (@echo. & @echo GNU SED and GREP required and not found on the PATH. & @echo.)
     70
     71fm2.wis: chksed fm2.wis.in fm2utils\fm2utils.doc fm2utils\license.txt makefile sed.in
    6672   sed -e "s/@@@FM2_VER@@@/$(FM2_VER)/" -e "s/@@@FM2UTILS_VER@@@/$(FM2UTILS_VER)/" -f sed.in fm2.wis.in | sed "/@@@include/{s/@@@include//;N;s/\n//}" >fm2.wis
    6773
Note: See TracChangeset for help on using the changeset viewer.