File: mkversion

package info (click to toggle)
mairix 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 1,376 kB
  • sloc: ansic: 13,318; sh: 1,035; yacc: 185; makefile: 143; lex: 87; perl: 34
file content (15 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download | duplicates (7)
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 \"$ver\"" >> version.h
else
	echo "#define PROGRAM_VERSION \"DEVELOPMENT\"" >> version.h
fi

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