summaryrefslogtreecommitdiffstats
path: root/scripts/update-version.sh
blob: f406641fa23ea24aad0a9619ba15a86fa3175217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

OLDVERSION=$(/bin/grep "version=" setup.py | sed -E "s/^.*version='(.*)',/\1/g")
echo "Current version is $OLDVERSION. Please enter the new vesrion"
read NEWVERSION

sed -i -E "s/version='$OLDVERSION',/version='$NEWVERSION',/g" setup.py

sed -i "3c $NEWVERSION" doc/whisperback.t2t

sed -i -E "s/__version__ = '$OLDVERSION'/__version__ = '$NEWVERSION'/g" whisperBack/gui.py

sed -i -E "s/Version=$OLDVERSION/Version=$NEWVERSION/g" data/whisperback.desktop

sed -i "\$a \\\n$NEWVERSION\n$(echo $NEWVERSION | tr '[:graph:]' '=')\n" ChangeLog
#echo "Please edit ChangeLog…"
vim ChangeLog

#echo "Please edit Debian changelog…"
export DEBFULLNAME="Tails developpers"
export DEBEMAIL="tails@boum.org"
dch --newversion $NEWVERSION

#git ci -m "Update version to $NEWVERSION" setup.py doc/whisperback.t2t whisperback/whisperback.py data/whisperback.desktop ChangeLog debian/changelog