[PATCH] bin: Rely only on the shebang line

Mathieu Lirzin <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
Previously ‘automake’ and ‘aclocal’ were handling the case of being
interpreted as a Shell script by using a hack leveraging the fact that
Shell and Perl has a compatible syntax intersection allowing those
scripts to launch ‘perl’ from the shell.

* bin/aclocal.in: Remove cryptic launching hack.
* bin/automake.in: Likewise.
---
 bin/aclocal.in  | 8 +-------
 bin/automake.in | 7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/bin/aclocal.in b/bin/aclocal.in
index b3715d9c6..722affa55 100644
--- a/bin/aclocal.in
+++ b/bin/aclocal.in
@@ -1,12 +1,6 @@
 #!@PERL@ -w
-# -*- perl -*-
+# aclocal - create aclocal.m4 by scanning configure.ac      -*- perl -*-
 # @configure_input@
-
-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
-    if 0;
-
-# aclocal - create aclocal.m4 by scanning configure.ac
-
 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
diff --git a/bin/automake.in b/bin/automake.in
index 16fb45182..8aafe4b58 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -1,11 +1,6 @@
 #!@PERL@ -w
-# -*- perl -*-
+# automake - create Makefile.in from Makefile.am            -*- perl -*-
 # @configure_input@
-
-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
-    if 0;
-
-# automake - create Makefile.in from Makefile.am
 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
-- 
2.16.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.