From 862498d9662561b1ec5d9c18bd37f16221c446ec Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 24 Feb 2000 15:30:04 +0000 Subject: [PATCH] added @VER (spong version number) into replacement tokens --- build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build b/build index ad2aeca..7f3d37b 100755 --- 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( ) { 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 ); -- 2.30.2