File: make_pragma

package info (click to toggle)
kvirc 1:2.1.2-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 12,184 kB
  • ctags: 13,390
  • sloc: cpp: 81,801; sh: 9,982; ansic: 802; makefile: 739
file content (14 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if test -f ./build_number; then
	build_count=`cat ./build_number`
fi
if test -z "$build_count"; then
	build_count=0
fi
build_count=`expr $build_count + 1`
echo "$build_count" > ./build_number
echo "#ifndef BUILD_NUMBER" > ./src/common/kvi_buildnumber.h
echo "	#define BUILD_NUMBER \"$build_count\"" >> ./src/common/kvi_buildnumber.h
echo "#endif" >> ./src/common/kvi_buildnumber.h
echo "Build number $build_count"
make