Changeset 1309


Ignore:
Timestamp:
Dec 1, 2008, 12:55:16 PM (17 years ago)
Author:
John Small
Message:

SED.IN: Rewrite each time the Warpin script needs building. This incorporates
the version strings in SED.IN therebby simplifying the SED command line.
(Ticket 297).

Location:
trunk/warpin
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/makefile

    r1280 r1309  
    1919# 30 Oct 08 JBS Code improvements, including condensed script-related code and
    2020#               eliminated occasional duplicate addition of the script to the WPI file
     21# 01 Dec 08 JBS SED.IN is now rewritten (via WMAKE's write/append) every time the Warpin
     22#               script needs to be built. This allows the version strings to be included
     23#               in SED.IN which, in turn, means the SED command line is much simplified.
     24#               Therefore SED.IN has now been removed from the SVN repository.
    2125
    2226!ifndef FM2_VER                  # if defined on wmake command, use it
     
    7175
    7276fm2.wis: fm2.wis.in fm2utils\fm2utils.doc fm2utils\license.txt makefile sed.in
     77   @echo Resetting SED commands
     78   @%write  sed.in s/@@@FM2_VER@@@/$(FM2_VER)/
     79   @%append sed.in s/@@@FM2UTILS_VER@@@/$(FM2UTILS_VER)/
     80   @%append sed.in /@@@include fm2utils.doc@@@/{
     81   @%append sed.in s/@@@include fm2utils.doc@@@/@@@include/
     82   @%append sed.in r fm2utils\fm2utils.doc
     83   @%append sed.in }
     84   @%append sed.in /@@@include license.txt@@@/{
     85   @%append sed.in s/@@@include license.txt@@@/@@@include/
     86   @%append sed.in r fm2utils\license.txt
     87   @%append sed.in }
     88   @%append sed.in /PACKAGEID/s/-/\\/g
     89   @%append sed.in /@@@include/{s/@@@include//;N;s/\n//}
    7390   @echo Inserting the new Warpin script into the WPI file...
    74    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
     91   sed -f sed.in fm2.wis.in >fm2.wis
    7592   bld_fm2_wpi fm2$(FM2_VER).wpi /SCRIPT
    7693
Note: See TracChangeset for help on using the changeset viewer.