summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-07-03 23:15:47 +0200
committerTails developers <amnesia@boum.org>2012-07-12 16:29:39 +0200
commit55e7433e1befd0865b280444376fa3d809d34237 (patch)
tree4d129e348d7223fd0cef468b6a838e675aa2c430 /scripts
parentc8a5184498ea2894fda818deb6dc895f4c88747a (diff)
Add basic release documentation and script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-version.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/update-version.sh b/scripts/update-version.sh
new file mode 100755
index 0000000..f406641
--- /dev/null
+++ b/scripts/update-version.sh
@@ -0,0 +1,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