mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Update MacQetDeploy.sh, thank yoann
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3526 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
f6f0c2106f
commit
bdadd33697
@ -74,8 +74,11 @@ svn up
|
|||||||
# recupere le numero de la nouvelle revision
|
# recupere le numero de la nouvelle revision
|
||||||
revAp=$(svnversion | cut -d : -f 2 | tr -d '[:alpha:]')
|
revAp=$(svnversion | cut -d : -f 2 | tr -d '[:alpha:]')
|
||||||
|
|
||||||
|
# On recupere le numero de version de l'originale
|
||||||
|
tagName=$(sed -n "s/const QString displayedVersion =\(.*\)/\1/p" sources/qet.h | cut -d\" -f2 | cut -d\" -f1 )
|
||||||
|
|
||||||
# Dmg de la dernière revision déjà créé
|
# Dmg de la dernière revision déjà créé
|
||||||
if [ -e "packaging/mac-osx/${APPNAME}_$revAp.dmg" ] ; then
|
if [ -e "packaging/mac-osx/${APPNAME} $tagName r$revAp.dmg" ] ; then
|
||||||
echo "There are not new updates, make disk image can"
|
echo "There are not new updates, make disk image can"
|
||||||
echo "take a lot of time (5 min). Can you continu?"
|
echo "take a lot of time (5 min). Can you continu?"
|
||||||
echo "[y/n]"
|
echo "[y/n]"
|
||||||
@ -101,9 +104,6 @@ echo "Adding the version tag..."
|
|||||||
mkdir temp
|
mkdir temp
|
||||||
cp -Rf "sources/qet.h" "temp/qet.h"
|
cp -Rf "sources/qet.h" "temp/qet.h"
|
||||||
|
|
||||||
# On recupere le numero de version de l'originale
|
|
||||||
tagName=$(sed -n "s/const QString displayedVersion =\(.*\)/\1/p" sources/qet.h | cut -d\" -f2 | cut -d\" -f1 )
|
|
||||||
|
|
||||||
# On modifie l'originale avec le numero de revision du depot svn
|
# On modifie l'originale avec le numero de revision du depot svn
|
||||||
sed -i "" "s/const QString displayedVersion =.*/const QString displayedVersion = \"$tagName r$revAp\";/" sources/qet.h
|
sed -i "" "s/const QString displayedVersion =.*/const QString displayedVersion = \"$tagName r$revAp\";/" sources/qet.h
|
||||||
|
|
||||||
@ -305,6 +305,8 @@ svnversion | grep -q '[MS:]' ; if [ $? -eq 0 ] ; then
|
|||||||
echo This is not the same version as the deposit.
|
echo This is not the same version as the deposit.
|
||||||
echo You can use \'svn diff\' to see the differences.
|
echo You can use \'svn diff\' to see the differences.
|
||||||
echo And use \'svn revert \<fichier\>\' to delete the difference.
|
echo And use \'svn revert \<fichier\>\' to delete the difference.
|
||||||
|
echo To go back, you can use svn update -r 360
|
||||||
|
echo to go to revision number 360.
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user