4 verfile=../common/version.h
7 major=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\1/g'`
8 minor=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\2/g'`
10 build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'`
11 test -n "$build" && build_post="-$build"
12 test -n "$build" || build=0
16 sed -e 's/@major@/'$major'/' \
17 -e 's/@minor@/'$minor'/' \
18 -e 's/@build@/'$build'/' \
19 -e 's/@build_post@/'$build_post'/' \