blob: 692d3597afeb82c11d62e8579709e521e50a3c45 [file] [log] [blame]
Martin Roth4dcd13d2016-02-24 13:53:07 -08001#!sh
2# FILE: make_buildnum.sh
3version="`sed 's/^ *//' major_version`"
4old="`sed 's/^ *//' build.number` +1"
5echo $old | bc > build.number.temp
6mv build.number.temp build.number
7#versiĆ³n..
8echo "$version`sed 's/^ *//' build.number` - `date`" > version.number
9#header
10echo "#ifndef BUILD_NUMBER_STR" > build_number.h
11echo "#define BUILD_NUMBER_STR \"`sed 's/^ *//' build.number`\"" >> build_number.h
12echo "#endif" >> build_number.h
13
14echo "#ifndef VERSION_STR" >> build_number.h
15echo "#define VERSION_STR \"$version`sed 's/^ *//' build.number` - `date`\"" >> build_number.h
16echo "#endif" >> build_number.h
17
18echo "#ifndef VERSION_STR_SHORT" >> build_number.h
19echo "#define VERSION_STR_SHORT \"$version`sed 's/^ *//' build.number`\"" >> build_number.h
Martin Roth9b1b3352016-02-24 12:27:06 -080020echo "#endif" >> build_number.h