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.5.0-rc1~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe5778fcc63c6ac135e7d1af18e72ecf5d34858d;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 97cebb53..8d871621 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/usr/bin/env 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