Skip to content

Commit

Permalink
Add script to set new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Mar 15, 2013
1 parent 2cc9c99 commit d493836
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions script/set-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

if [ $# != 1 ]; then
echo "Usage: $0 <version>"
exit 1
fi

version=$1
#echo $version

sed -i -e "s,\(\tversion \+= \)\".*\"$,\1\"$version\"," shadowsocks/util.go
sed -i -e "s/Version:.*$/Version: $version-1/" deb/DEBIAN/control

0 comments on commit d493836

Please sign in to comment.