commit:     cf6567f03d2f43df987d2c5950ee27132d6bb7aa
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 30 08:35:59 2022 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Jan 30 08:35:59 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=cf6567f0

autoconf-wrapper: drop unnecessary argv0 check

This doesn't add much value, and would never fire in an installed
setup.  It was meant to catch `./ac-wrapper.sh` usage in the source
tree, but the code largely executes fine otherwise, so might as well
punt it.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 ac-wrapper.sh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index 4e0a765..37eb7b7 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -49,10 +49,6 @@ case $0 in
                ;;
 esac
 
-if [ "${argv0}" = "ac-wrapper.sh" ] ; then
-       err "Don't call this script directly"
-fi
-
 if [ "${WANT_AUTOCONF}" = "2.1" ] && [ "${argv0}" = "autom4te" ] ; then
        err "Autoconf 2.13 doesn't contain autom4te.\n" \
            "   Either unset WANT_AUTOCONF or don't execute anything\n" \

Reply via email to