From 9f4ffd78ae14d8f9f6fd49a174a150565500a45b Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 21 Aug 2003 19:27:01 +0000 Subject: update for new version.h format (This used to be commit 523f2554c0fa8512d805b5f8e1fb122c02f856f2) --- packaging/SGI/spec.pl | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'packaging/SGI') diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl index 4541eb04ec..d581db7043 100755 --- a/packaging/SGI/spec.pl +++ b/packaging/SGI/spec.pl @@ -4,15 +4,21 @@ # information in the version.h file in the source tree open (VER,'../../source/include/version.h') || die "Unable to open version.h\n"; -($_ = ) =~ s/"//g; +while ( ) { + chomp; + if ( /SAMBA_VERSION_OFFICIAL_STRING/ ) { + s/^.*SAMBA_VERSION_OFFICIAL_STRING "//; + s/".*$//; + $SambaVersion = $_; + } +} close (VER); -@foo = split(' '); -splice(@foo,0,2); -$_ = $foo[0]; # create the package name -$vername = " id \"Samba Version ".$_."\"\n"; +$vername = " id \"Samba Version ".$SambaVersion."\"\n"; +$_ = $SambaVersion; +s/^.* //; $patch = 0; #create the subsystem version numbers if (/alpha/) { -- cgit