diff options
author | Herb Lewis <herb@samba.org> | 2003-08-21 19:27:01 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2003-08-21 19:27:01 +0000 |
commit | 523f2554c0fa8512d805b5f8e1fb122c02f856f2 (patch) | |
tree | a4f5fe996dd6fba60ea08765fef0d9e51fbc1cbf /packaging | |
parent | d0f394dac344edbb732eecdba5fbab1523acf2b3 (diff) | |
download | samba-523f2554c0fa8512d805b5f8e1fb122c02f856f2.tar.gz samba-523f2554c0fa8512d805b5f8e1fb122c02f856f2.tar.xz samba-523f2554c0fa8512d805b5f8e1fb122c02f856f2.zip |
update for new version.h format
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/SGI/spec.pl | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl index 4541eb04ec3..d581db7043f 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"; -($_ = <VER>) =~ s/"//g; +while ( <VER> ) { + 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/) { |