* support/regression/Makefile.in:
[fw/sdcc] / configure_vc.awk
index b44c968557d6451bfaab9fa761d391fca56da9fa..07e4f7a130b0dfbd02ccbc17a3449c6bf2f6de22 100644 (file)
 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 BEGIN {
+  # get the values from .version
   FS=".";
   getline <".version";
-  h = $1;
-  l = $2;
-  p = $3;
+  version_high = $1;
+  version_lo = $2;
+  version_patch = $3;
+
   print "/*"
   print " * sdcc_vc.h"
   print " * Generated automatically by configure_vc.awk, DO NOT edit!"
@@ -36,22 +38,22 @@ BEGIN {
 }
 
 /^#undef SDCC_VERSION_HI$/ {
-  print("#define SDCC_VERSION_HI " h);
+  print("#define SDCC_VERSION_HI " version_high);
   next
 }
 
 /^#undef SDCC_VERSION_LO$/ {
-  print("#define SDCC_VERSION_LO " l);
+  print("#define SDCC_VERSION_LO " version_lo);
   next
 }
 
 /^#undef SDCC_VERSION_P$/ {
-  print("#define SDCC_VERSION_P " p);
+  print("#define SDCC_VERSION_P " version_patch);
   next
 }
 
 /^#undef SDCC_VERSION_STR$/ {
-  print("#define SDCC_VERSION_STR " "\"" h "." l "." p "\"");
+  print("#define SDCC_VERSION_STR " "\"" version_high "." version_lo "." version_patch "\"");
   next
 }