]> git.etc.gen.nz Git - spong.git/commitdiff
added @VER (spong version number) into replacement tokens
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 24 Feb 2000 15:30:04 +0000 (15:30 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 24 Feb 2000 15:30:04 +0000 (15:30 +0000)
build

diff --git a/build b/build
index ad2aecaca0a45121285fe1e7a7b8ee33bb296e37..7f3d37be6c54aea3bc815a0477bd037d3ca2aac2 100755 (executable)
--- a/build
+++ b/build
@@ -46,6 +46,8 @@ if( `cat ./.version 2>&1` ne "spong 2.7\n" ) {
    exit(0);
 }
 
+($VER) = (`cat ./.version 2>&1` =~ /spong (.*)/);
+
 # Compute a list of operating systems that we know about.
 
 opendir( DIR, "./config" ) || die "Can't open ./config dir: $!";
@@ -245,7 +247,7 @@ sub replace {
       while( <IN> ) {
         s/\@\@PERL\@\@/$PERL/g;         s/\@\@ETCDIR\@\@/$ETCDIR/g;
         s/\@\@BINDIR\@\@/$BINDIR/g;     s/\@\@WWWDIR\@\@/$WWWDIR/g;
-        s/\@\@LIBDIR\@\@/$LIBDIR/g;
+        s/\@\@LIBDIR\@\@/$LIBDIR/g;     s/\@\@VER\@\@/$VER/g;
         print OUT $_;
       }
       close( OUT );