Commit 7fb0bc3c authored by Florent's avatar Florent
Browse files

Exclude contrib by version rewriting

parent f834f63b
......@@ -4,7 +4,7 @@ set -e
function set_version {
echo -n "Replacing version in source files to $1"
for fl in $(find . -iname "*.py"); do
for fl in $(find . -iname "*.py" ! -path "./contrib/*"); do
sed "s/^\(\s*\)\(VERSION\|version\|release\)\( *\)=\( *\)[\"'][0-9]\+\..\+[\"']\(,\?\)$/\1\2\3=\4'$1'\5/g" $fl > $fl.new
diff $fl.new $fl >/dev/null && echo -n "." || echo -n "+"
cp -f $fl.new $fl
......
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