mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Purge old comment
This commit is contained in:
parent
acf9c17969
commit
d1c969b723
@ -15,13 +15,7 @@ GITCOMMIT=$(git rev-parse --short HEAD)
|
||||
A=$(git rev-list HEAD --count)
|
||||
HEAD=$(($A+473))
|
||||
|
||||
VERSION=$(cat sources/qet.h | grep "const QString version" | cut -d\" -f2 | cut -d\" -f1) #Find version tag in GIT sources/qet.h
|
||||
tagName=$(cat sources/qet.h | grep displayedVersion | cut -d\" -f2 | cut -d\" -f1) #Find displayedVersion tag in GIT sources/qet.h
|
||||
|
||||
# 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
|
||||
# We recover the version number of the original
|
||||
tagName=$(sed -n "s/const QString displayedVersion =\(.*\)/\1/p" sources/qet.h | cut -d\" -f2 | cut -d\" -f1 )
|
||||
|
||||
# On modifie l'originale avec le numéro de révision du dépôt GIT
|
||||
|
@ -9,26 +9,20 @@ git reset --hard origin/master
|
||||
|
||||
cd ..
|
||||
|
||||
# Fait une mise à jour
|
||||
# get updates
|
||||
git pull
|
||||
#git checkout test_pugi
|
||||
|
||||
sed -i 's/DEFINES += QET_EXPORT_PROJECT_DB/#DEFINES += QET_EXPORT_PROJECT_DB/' qelectrotech.pro
|
||||
|
||||
# get the number of the new revision
|
||||
GITCOMMIT=$(git rev-parse --short HEAD)
|
||||
A=$(git rev-list HEAD --count)
|
||||
HEAD=$(($A+473))
|
||||
|
||||
VERSION=$(cat sources/qet.h | grep "const QString version" | cut -d\" -f2 | cut -d\" -f1) #Find version tag in GIT sources/qet.h
|
||||
tagName=$(cat sources/qet.h | grep displayedVersion | cut -d\" -f2 | cut -d\" -f1) #Find displayedVersion tag in GIT sources/qet.h
|
||||
|
||||
# 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
|
||||
# We recover the version number of the original
|
||||
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
|
||||
# We modify the original with the revision number of the svn repository
|
||||
sed -i 's/'"const QString displayedVersion =.*/const QString displayedVersion = \"$tagName+$GITCOMMIT\";"'/' sources/qet.h
|
||||
|
||||
cd ~
|
||||
|
Loading…
x
Reference in New Issue
Block a user