Also change VERSION if there is no space before
This commit is contained in:
parent
97f92a7276
commit
807078a30c
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
function set_version {
|
function set_version {
|
||||||
echo -n "Replacing version in source files to $1"
|
echo -n "Replacing version in source files to $1"
|
||||||
for fl in $(find . -iname "*.py"); do
|
for fl in $(find . -iname "*.py"); do
|
||||||
sed "s/^\(\s\+\)\(VERSION\|version\|release\)\( *\)=\( *\)[\"'][0-9]\+\..\+[\"']\(,\?\)$/\1\2\3=\4'$1'\5/g" $fl > $fl.new
|
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 "+"
|
diff $fl.new $fl >/dev/null && echo -n "." || echo -n "+"
|
||||||
cp -f $fl.new $fl
|
cp -f $fl.new $fl
|
||||||
rm -f $fl.new
|
rm -f $fl.new
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue