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=0
15 sed 's/@major@/'$major'/' "$1" > "$2"
16 sed -i 's/@minor@/'$minor'/' "$2"
17 sed -i 's/@build@/'$build'/' "$2"