mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-22 00:48:44 +00:00
Fixed: Use "revision" file
--HG-- branch : develop
This commit is contained in:
parent
84f733c8d4
commit
c6403a1a34
1 changed files with 2 additions and 7 deletions
9
dist/debian/update.sh
vendored
9
dist/debian/update.sh
vendored
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue