From caf22ac0db24bc5e370bac2fdf56e12437bfd7df Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 7 Mar 2013 15:42:06 +1100 Subject: [PATCH] add PRODUCT to version.h; handle empty PATCHVER (cherry picked from commit b0f3042e37c697759903b15442bacbce0f873fc9) --- win32utils/makeversion.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/win32utils/makeversion.pl b/win32utils/makeversion.pl index afae0fe55b..de812b4102 100644 --- a/win32utils/makeversion.pl +++ b/win32utils/makeversion.pl @@ -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";