[qet] [3526] Update MacQetDeploy.sh, thank yoann

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3526
Author:   scorpio810
Date:     2014-11-28 22:41:16 +0100 (Fri, 28 Nov 2014)
Log Message:
-----------
Update MacQetDeploy.sh, thank yoann

Modified Paths:
--------------
    trunk/misc/MacQetDeploy.sh

Modified: trunk/misc/MacQetDeploy.sh
===================================================================
--- trunk/misc/MacQetDeploy.sh	2014-11-28 18:14:33 UTC (rev 3525)
+++ trunk/misc/MacQetDeploy.sh	2014-11-28 21:41:16 UTC (rev 3526)
@@ -74,8 +74,11 @@
 # recupere le numero de la nouvelle revision
 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éé
-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 "take a lot of time (5 min). Can you continu?"
     echo  "[y/n]"
@@ -101,9 +104,6 @@
 mkdir temp
 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
 sed -i "" "s/const QString displayedVersion =.*/const QString displayedVersion = \"$tagName r$revAp\";/" sources/qet.h
 
@@ -305,6 +305,8 @@
     echo This is not the same version as the deposit. 
     echo You can use \'svn diff\' to see the differences. 
     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
 fi 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/