# 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!"
- print " * To make changes to sdcc_vc.h edit sdcc_vc_in.h instead."
- print " */"
- print ""
+ print " */"
+ print ""
}
/^#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
}