]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
autogen.sh: use POSIX comparison for test
authorPeter A. Bigot <pab@pabigot.com>
Wed, 19 Feb 2014 00:31:01 +0000 (18:31 -0600)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 26 Feb 2014 05:21:38 +0000 (06:21 +0100)
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.

autogen.sh

index 97cebb535aa62b2e449bad7bef77d0d746ab9781..8d87162122864ca07d563f4233bd9bcb15190601 100755 (executable)
@@ -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