Commit 23229ebd authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

circleci: Tolerate spaces in AC_INIT()

Better diff with the --word-diff --word-diff-regex=. options.
parent 3d597de6
......@@ -82,9 +82,9 @@ jobs:
touch .is_weekly
# If version is "trunk", override version to add date
if grep 'AC_INIT.*trunk.*' ./configure.ac; then
sed -i -e "s/AC_INIT(\[\(.*\)\],\[\(.*\)\],\[\(.*\)\])/AC_INIT([\1],[$(date +%Y%m%d)],[\3])/" ./configure.ac
sed -i -e "s/AC_INIT(\[\(.*\)\],\s*\[\(.*\)\],\s*\[\(.*\)\])/AC_INIT([\1],[$(date +%Y%m%d)],[\3])/" ./configure.ac
else
sed -i -e "s/AC_INIT(\[\(.*\)\],\[\(.*\)\],\[\(.*\)\])/AC_INIT([\1],[\2-$(date +%Y%m%d)],[\3])/" ./configure.ac
sed -i -e "s/AC_INIT(\[\(.*\)\],\s*\[\(.*\)\],\s*\[\(.*\)\])/AC_INIT([\1],[\2-$(date +%Y%m%d)],[\3])/" ./configure.ac
fi
./autogen.des
make dist -j 16
......
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