File: mkversion

package info (click to toggle)
chrony 1.24-3%2Bsqueeze3
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 2,640 kB
  • ctags: 2,657
  • sloc: ansic: 17,290; yacc: 871; sh: 758; perl: 426; makefile: 155
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