summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeb_release.sh34
1 files changed, 11 insertions, 23 deletions
diff --git a/deb_release.sh b/deb_release.sh
index 384af0e8..83995bde 100755
--- a/deb_release.sh
+++ b/deb_release.sh
@@ -1,25 +1,13 @@
#!/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"
+for pkg in common client server; do
+ cd ${pkg}
+ echo `pwd`
+ rm src/leap/soledad/${pkg}/_version.py
+ python setup.py freeze_debianver
+ sed -i 's/-dirty//g' src/leap/soledad/${pkg}/_version.py
+ git add src/leap/soledad/${pkg}/_version.py
+ cd ..
+done
+
+git commit -m "Freeze debian version."