Fixed: Use "revision" file

--HG--
branch : develop
This commit is contained in:
kervala 2017-04-18 10:57:53 +02:00
parent 84f733c8d4
commit c6403a1a34

View file

@ -9,17 +9,12 @@ $HGBIN log -M --style $CODEROOT/changelog.template > $CODEROOT/changelog
REVISION=$($HGBIN identify -n | grep -o -P "[0-9]+")
echo "Found revision $REVISION"
REVISION_H=$CODEROOT/revision.h
# Copy revision.h template
cp $REVISION_H.in $REVISION_H
REVISION_H=$CODEROOT/revision
DATE=$(date "+%Y-%m-%d %H:%M:%S")
# Update revision.h with revision and build date
sed -i 's/#cmakedefine/#define/g' $REVISION_H
sed -i 's/${REVISION}/'$REVISION'/g' $REVISION_H
sed -i 's/${BUILD_DATE}/'"$DATE"'/g' $REVISION_H
echo $REVISION > $REVISION_H
VERSION=$(./ryzomcore_version.sh)