correct issue to generate patch with good release number

This commit is contained in:
Jerome Sagnole 2017-09-03 17:57:45 +02:00
parent 3afcadb9c3
commit 322eb4f947

View file

@ -488,8 +488,16 @@ awk 'BEGIN{found=0}{
#</xml>
#EOF
# Force version release
if [[ $KHANAT_CLIENT_VERSION -gt 1 ]]
then
# rm $PATCH_HOME/patch_service/patch_game/ryzom.hist
# rm $PATCH_HOME/patch_service/patch_game/ref/*
echo -n "$KHANAT_CLIENT_VERSION" > $PATCH_HOME/patch_service/patch_game/Lirria.version
fi
# Generate patch
su -c "cd $PATCH_HOME/patch_service; patch_gen updateProduct patch_game/ryzom.xml" gameserver || exit 2
su -c "cd $PATCH_HOME/patch_service; patch_gen updateProduct patch_game/ryzom.xml > patch_game/generate.log 2>&1" gameserver || exit 2
# Edit release note
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/index.php
<html>
@ -505,6 +513,7 @@ cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/index.php
EOF
chown gameserver:www-data $PATCH_HOME/patch_service/patch_game/patch/index.php
# TODO - Strange, we need update patch - to be check
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/Lirria.version
$KHANAT_CLIENT_VERSION $KHANAT_CLIENT_VERSION
EOF