[commit: ghc] master: Fix some m4/shell syntax in aclocal.m4, spotted by Jan Stolarek (d3788e1)

Ian Lynagh igloo at earth.li
Thu Feb 28 15:20:46 CET 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/d3788e17430f05390ae59b31f62ebae19692b00f

>---------------------------------------------------------------

commit d3788e17430f05390ae59b31f62ebae19692b00f
Author: Ian Lynagh <ian at well-typed.com>
Date:   Thu Feb 28 12:52:59 2013 +0000

    Fix some m4/shell syntax in aclocal.m4, spotted by Jan Stolarek
    
    [ ] is m4 syntax, so we need to use 'test foo' rather than '[ foo ]'.

>---------------------------------------------------------------

 aclocal.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 268e631..415388d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1969,7 +1969,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
         save_IFS=$IFS
         IFS=":;"
         for p in ${PATH}; do
-	    if [ -d "${p}" ]; then
+	    if test -d "${p}"; then
                 $1=`${FindCmd} "${p}" -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' -or -type l -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1`
                 if test -n "$1"; then
                     break





More information about the ghc-commits mailing list