diff options
author | drebs <drebs@leap.se> | 2014-06-06 16:51:38 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2014-06-06 16:52:14 -0300 |
commit | 75a88bdb726425802f99c78f153ddde845cb9f1a (patch) | |
tree | 23376e0ce0628f1a5f04be5b92a00af9fac93808 /deb_release.sh | |
parent | af0e70b9ee42f746b1e95440bbf40fbaab47a2ba (diff) |
Shorten and fix deb_release.sh.
Diffstat (limited to 'deb_release.sh')
-rwxr-xr-x | deb_release.sh | 34 |
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." |