]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
autogen.sh: use POSIX comparison for test 442/head
authorPeter A. Bigot <pab@pabigot.com>
Wed, 19 Feb 2014 00:31:01 +0000 (18:31 -0600)
committerPeter A. Bigot <pab@pabigot.com>
Wed, 19 Feb 2014 00:31:01 +0000 (18:31 -0600)
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 e9b7efff3a9bdaa8f4fc7a2c4a9e2e55d9f3bee2..7bac7e26eb40abaaef2ba114598b5a782011ecb7 100755 (executable)
@@ -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