[pacman-dev] [PATCH] autogen.sh: remove useless shell flag and subshells

Dave Reisner dreisner at archlinux.org
Sun Oct 13 23:20:08 EDT 2013


>From a bash shell where /bin/sh -> /bin/dash:
$ ./autogen.sh
./autogen.sh: 3: ./autogen.sh: BASH_SOURCE: parameter not set

The -u flag causes this (and lots of other mysterious problems). Since
there aren't even any variables in this script, it makes no sense to
use it.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 autogen.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 588e63d..18fa641 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,6 @@
-#!/bin/sh -xu
+#!/bin/sh -x
 
 autoreconf -i
-(cd build-aux && (patch -Np0 -i ltmain-asneeded.patch || true))
+patch -d build-aux -Np0 -i ltmain-asneeded.patch
+
+exit 0
-- 
1.8.4



More information about the pacman-dev mailing list