diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-04-28 21:15:54 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-04-28 21:15:54 +0200 |
commit | 76df951eb5a1f84956ffafebf6f88768d63623d8 (patch) | |
tree | b4409af9b1f9d5138b0cb04fe4729ec76fd3eaa3 /buildconf | |
parent | f9db357623434e8583a22553d26aeaa375b97e05 (diff) | |
download | php-git-76df951eb5a1f84956ffafebf6f88768d63623d8.tar.gz |
Enhance the buildconf force option
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
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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. @@ -55,7 +55,7 @@ HELP exit 0 fi - if test "$1" = "--force"; then + if test "$1" = "-f" || test "$1" = "--force"; then force=1 fi @@ -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" |