projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
[fw/sdcc]
/
configure_vc.awk
diff --git
a/configure_vc.awk
b/configure_vc.awk
index b44c968557d6451bfaab9fa761d391fca56da9fa..07e4f7a130b0dfbd02ccbc17a3449c6bf2f6de22 100644
(file)
--- a/
configure_vc.awk
+++ b/
configure_vc.awk
@@
-22,11
+22,13
@@
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
BEGIN {
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
BEGIN {
+ # get the values from .version
FS=".";
getline <".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 "/*"
print " * sdcc_vc.h"
print " * Generated automatically by configure_vc.awk, DO NOT edit!"
@@
-36,22
+38,22
@@
BEGIN {
}
/^#undef SDCC_VERSION_HI$/ {
}
/^#undef SDCC_VERSION_HI$/ {
- print("#define SDCC_VERSION_HI " h);
+ print("#define SDCC_VERSION_HI "
version_hig
h);
next
}
/^#undef SDCC_VERSION_LO$/ {
next
}
/^#undef SDCC_VERSION_LO$/ {
- print("#define SDCC_VERSION_LO "
l
);
+ print("#define SDCC_VERSION_LO "
version_lo
);
next
}
/^#undef SDCC_VERSION_P$/ {
next
}
/^#undef SDCC_VERSION_P$/ {
- print("#define SDCC_VERSION_P "
p
);
+ print("#define SDCC_VERSION_P "
version_patch
);
next
}
/^#undef SDCC_VERSION_STR$/ {
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
}
next
}