mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
add PRODUCT to version.h; handle empty PATCHVER
(cherry picked from commit b0f3042e37c697759903b15442bacbce0f873fc9)
This commit is contained in:
parent
da49a52345
commit
caf22ac0db
@ -92,11 +92,16 @@ print OUTVERSIONFILE '
|
|||||||
|
|
||||||
';
|
';
|
||||||
|
|
||||||
|
if ($Versions{'PATCHVER'} != "") {
|
||||||
$Version = "$Versions{'MAJORVER'}.$Versions{'MINORVER'}.$Versions{'PATCHVER'}";
|
$Version = "$Versions{'MAJORVER'}.$Versions{'MINORVER'}.$Versions{'PATCHVER'}";
|
||||||
|
} else {
|
||||||
|
$Version = "$Versions{'MAJORVER'}.$Versions{'MINORVER'}";
|
||||||
|
}
|
||||||
$Version = "$Version$Versions{'RELEASETYPE'}$Versions{'RELEASEVER'}";
|
$Version = "$Version$Versions{'RELEASETYPE'}$Versions{'RELEASEVER'}";
|
||||||
print "BIND Version: $Version\n";
|
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) {
|
foreach $dir (@dirlist) {
|
||||||
$apifile = "../lib/$dir/api";
|
$apifile = "../lib/$dir/api";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user