Update svn merge history.
[sdcc.git] / sdcc / src / version.awk
bloba84bba093a74fe4b8cdc779b77994550854da3a2
1 BEGIN {
2 print "/*"
3 print " * version.h"
4 print " * control long build version number"
5 print " *"
6 print " * Created automatically with version.awk script"
7 print " *"
8 print " */"
9 print ""
10 print "#ifndef __VERSION_H__"
11 print "#define __VERSION_H__"
12 print ""
14 FS="[ \t.]"
17 /Revision/ {
18 if ($2) {
19 printf "#define SDCC_BUILD_NUMBER \"%s\"\n", $2
20 printf "#define SDCC_BUILD_NR %s\n", $2
22 else {
23 print "#define SDCC_BUILD_NUMBER \"0\""
24 print "#define SDCC_BUILD_NR 0"
28 END {
29 print ""
30 print "#endif"