1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

update for new version.h format

(This used to be commit 523f2554c0fa8512d805b5f8e1fb122c02f856f2)
This commit is contained in:
Herb Lewis 2003-08-21 19:27:01 +00:00
parent eb052f397b
commit 9f4ffd78ae

View File

@ -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/) {