Commit b0f3042e authored by Mark Andrews's avatar Mark Andrews
Browse files

add PRODUCT to version.h; handle empty PATCHVER

parent c4bf484f
...@@ -92,11 +92,16 @@ print OUTVERSIONFILE ' ...@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment