Skip to content

Commit

Permalink
Enhance the buildconf force option
Browse files Browse the repository at this point in the history
The force option used to only remove the Autoconf cache files. Now it
also removes entire configure file so the configure file always gets
rebuilt when needs be done.

Additionally, the buildconf now also accepts the shorter version of the
force option:
  buildconf -f
  • Loading branch information
petk committed Apr 28, 2019
1 parent f9db357 commit 76df951
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildconf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SYNOPSIS:
buildconf [<options>]
OPTIONS:
--force Clean cache and overwrite configure files.
-f, --force Clean cache and overwrite configure files.
--debug Display warnings emitted by Autoconf.
-h, --help Display this help.
Expand All @@ -55,7 +55,7 @@ HELP
exit 0
fi

if test "$1" = "--force"; then
if test "$1" = "-f" || test "$1" = "--force"; then
force=1
fi

Expand Down Expand Up @@ -87,8 +87,8 @@ fi

if test "$force" = "1"; then
echo "buildconf: Forcing buildconf"
echo "buildconf: Removing configure caches"
rm -rf autom4te.cache config.cache
echo "buildconf: Removing configure caches and files"
rm -rf autom4te.cache config.cache configure
fi

echo "buildconf: Building configure files"
Expand Down

0 comments on commit 76df951

Please sign in to comment.