From: Peter A. Bigot Date: Wed, 19 Feb 2014 00:31:01 +0000 (-0600) Subject: autogen.sh: use POSIX comparison for test X-Git-Tag: v1.4.9~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929e72330cad743794fe149a9f8e2fc1216ad16d;p=thirdparty%2Frrdtool-1.x.git autogen.sh: use POSIX comparison for test Although bash recognizes ==, and the shell has a shebang to use it, some of us still automatically type "sh autogen.sh" instead of "./autogen.sh", and this breaks on debian/jessie where /bin/sh is not bash. The fix is trivial and should be safe for bash too (which recommends using = instead of == with the test command for POSIX conformance. --- diff --git a/autogen.sh b/autogen.sh index e9b7efff..7bac7e26 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/bin/bash # On MAC OS X, GNU libtoolize is named 'glibtoolize': -if [ `(uname -s) 2>/dev/null` == 'Darwin' ] +if [ `(uname -s) 2>/dev/null` = 'Darwin' ] then glibtoolize else