projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied patch #2762516
[fw/sdcc]
/
configure_vc.awk
diff --git
a/configure_vc.awk
b/configure_vc.awk
index b44c968557d6451bfaab9fa761d391fca56da9fa..e9235abdcec966f8306c2360844a158f26757d9e 100644
(file)
--- a/
configure_vc.awk
+++ b/
configure_vc.awk
@@
-22,36
+22,36
@@
# 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 "/*"
- print " * sdcc_vc.h"
print " * Generated automatically by configure_vc.awk, DO NOT edit!"
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$/ {
}
/^#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
}