automatically generate version.h from ChangeLog's Revision tag
used for printing the JTAG Tools build number upon startup git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@811 b68d4a1b-bc3d-0410-92ed-d4ac073336b7master
parent
4b93f558b6
commit
c6685ac0a3
@ -0,0 +1,26 @@
|
||||
BEGIN {
|
||||
print "/*"
|
||||
print " * version.h"
|
||||
print " * control long build version number"
|
||||
print " *"
|
||||
print " * Created automatically with version.awk script"
|
||||
print " *"
|
||||
print " */"
|
||||
print ""
|
||||
print "#ifndef __VERSION_H__"
|
||||
print "#define __VERSION_H__"
|
||||
print ""
|
||||
|
||||
FS="[ \t.]"
|
||||
}
|
||||
|
||||
/Revision/ { printf "#define URJTAG_BUILD_NUMBER\t\"%s\"\n", $2 }
|
||||
|
||||
END {
|
||||
print ""
|
||||
print "#ifndef URJTAG_BUILD_NUMBER"
|
||||
print "#define URJTAG_BUILD_NUMBER \"0\""
|
||||
print "#endif"
|
||||
print ""
|
||||
print "#endif"
|
||||
}
|
Loading…
Reference in New Issue