summaryrefslogtreecommitdiff
path: root/deb_release.sh
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-11-05 11:30:59 -0200
committerKali Kaneko <kali@leap.se>2013-11-05 11:30:59 -0200
commit1eaf079082ea4c4297610d773e71f7e6d4610102 (patch)
tree30c001dac7d408157bc3afda4d66537cea94503f /deb_release.sh
parentbd258e2bd2ac7aa61d4d40aabe895b7cad2e2233 (diff)
add script for doing debian version freeze
Diffstat (limited to 'deb_release.sh')
-rwxr-xr-xdeb_release.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/deb_release.sh b/deb_release.sh
new file mode 100755
index 00000000..384af0e8
--- /dev/null
+++ b/deb_release.sh
@@ -0,0 +1,25 @@
+#!/bin/zsh
+
+cd common
+echo `pwd`
+rm src/leap/soledad/common/_version.py
+python setup.py freeze_debianver
+sed -i 's/-dirty//g' src/leap/soledad/common/_version.py
+cd ..
+
+cd client
+rm src/leap/soledad/client/_version.py
+python setup.py freeze_debianver
+sed -i 's/-dirty//g' src/leap/soledad/client/_version.py
+cd ..
+
+cd server
+rm src/leap/soledad/server/_version.py
+python setup.py freeze_debianver
+sed -i 's/-dirty//g' src/leap/soledad/server/_version.py
+cd ..
+
+git add common/src/leap/soledad/common/_version.py
+git add client/src/leap/soledad/client/_version.py
+git add server/src/leap/soledad/server/_version.py
+git ci -m "freeze debian version"