1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

fix bug in version numbering scheme

This commit is contained in:
Herb Lewis 0001-01-01 00:00:00 +00:00
parent 84e2f78547
commit 2e9f4b5daa

View File

@ -13,6 +13,7 @@ $_ = $foo[0];
# create the package name
$vername = " id \"Samba Version ".$_."\"\n";
$patch = 0;
#create the subsystem version numbers
if (/alpha/) {
$_ =~ s/alpha/.00./;
@ -21,8 +22,13 @@ elsif (/p/) {
$_ =~ s/p/./;
$_ .= '.00';
}
else {
$_ .='.01.00';
}
($v1,$v2,$v3,$v4,$v5) = split('\.');
$vernum = sprintf " version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5;
$v4 = $v4 + $patch;
$vernum = sprintf(" version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5);
# generate the samba.spec file
open(SPEC,">samba.spec") || die "Unable to open samba.spec for output\n";