Skip to content

Commit

Permalink
Fix release.sh tagging; Add syncver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed Sep 9, 2017
1 parent f7911ec commit 836aa11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ main() {

if [ "$tagit" -eq 1 ]
then
bypyversion=`grep __version__ bypy/const.py | sed -e "s/__version__ = '//g" -e "s/',//g"`
bypyversion=`grep __version__ bypy/const.py | sed -e "s/__version__ *= *'//g" -e "s/'//g"`
git tag
git tag "$bypyversion"
git push
Expand Down
5 changes: 5 additions & 0 deletions syncver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

ver=`grep __version__ bypy/const.py | sed -e "s/__version__ *= *'//g" -e "s/'//g"`
sed -i -e "s/\(^.*\)\"recommendedVersion\".*$/\1\"recommendedVersion\": $ver,/g" update/update.json

0 comments on commit 836aa11

Please sign in to comment.