>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 <[email protected]>
---
 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


Reply via email to