10 VERSION_FILE
=$CODEROOT/CMakeLists.txt
12 if [ ! -f $VERSION_FILE ]
14 echo "Unable to find $VERSION_FILE"
24 V
=$
(egrep -o $PREFIX"_$VAR [0-9]+" $FILE |
awk '{print $2}' |
head -n 1)
28 echo "Can't parse $VAR from $FILE, aborting..."
35 parse_version RYZOM
$VERSION_FILE VERSION_MAJOR
36 parse_version RYZOM
$VERSION_FILE VERSION_MINOR
37 parse_version RYZOM
$VERSION_FILE VERSION_PATCH
39 VERSION
=$VERSION_MAJOR.
$VERSION_MINOR.
$VERSION_PATCH