Skip to content

Commit

Permalink
circleci: Tolerate spaces in AC_INIT()
Browse files Browse the repository at this point in the history
Better diff with the --word-diff --word-diff-regex=. options.
  • Loading branch information
Dridi committed Mar 19, 2024
1 parent 3d597de commit 23229eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -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
Expand Down

0 comments on commit 23229eb

Please sign in to comment.