File: mkversion

package info (click to toggle)
chrony 1.21z-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,080 kB
  • ctags: 2,375
  • sloc: ansic: 14,831; yacc: 858; sh: 588; perl: 426; makefile: 148
file content (15 lines) | stat: -rwxr-xr-x 338 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

rm -f version.h
echo "#ifndef VERSION_H" > version.h
echo "#define VERSION_H 1" >> version.h

if [ -f version.txt ]; then
	ver=`cat version.txt`
	echo "#define PROGRAM_VERSION_STRING \"$ver\"" >> version.h
else
	echo "#define PROGRAM_VERSION_STRING \"DEVELOPMENT\"" >> version.h
fi

echo "#endif /* VERSION_H */" >> version.h