Commit 3e210990 authored by Romain Bignon's avatar Romain Bignon

update release script

parent 5b1260b7
......@@ -2,9 +2,9 @@
# This script is used to release a version.
function set_version {
echo -n "Replacing version in source files"
echo -n "Replacing version in source files to $1"
for fl in $(find . -iname "*.py"); do
sed "s/\(VERSION\|version\|release\) *= *[\"'][0-9]\+\..\+[\"'],?$/\1 = '$1'/g" $fl > $fl.new
sed "s/\(VERSION\|version\|release\) *= *[\"'][0-9]\+\..\+[\"'],\?$/\1 = '$1'/g" $fl > $fl.new
diff $fl.new $fl >/dev/null && echo -n "." || echo -n "+"
cp -f $fl.new $fl
rm -f $fl.new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment