2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

add PRODUCT to version.h; handle empty PATCHVER

(cherry picked from commit b0f3042e37c697759903b15442bacbce0f873fc9)
This commit is contained in:
Mark Andrews 2013-03-07 15:42:06 +11:00
parent da49a52345
commit caf22ac0db

View File

@ -92,11 +92,16 @@ print OUTVERSIONFILE '
';
if ($Versions{'PATCHVER'} != "") {
$Version = "$Versions{'MAJORVER'}.$Versions{'MINORVER'}.$Versions{'PATCHVER'}";
} else {
$Version = "$Versions{'MAJORVER'}.$Versions{'MINORVER'}";
}
$Version = "$Version$Versions{'RELEASETYPE'}$Versions{'RELEASEVER'}";
print "BIND Version: $Version\n";
print OUTVERSIONFILE "#define VERSION \"$Version\"\n\n";
print OUTVERSIONFILE "#define VERSION \"$Version\"\n";
print OUTVERSIONFILE "#define PRODUCT \"$Versions{'PRODUCT'}\"\n\n";
foreach $dir (@dirlist) {
$apifile = "../lib/$dir/api";