Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal On branch : master
http://hackage.haskell.org/trac/ghc/changeset/986c3986e50d989c4d19489b4e56a19e9fc2c440 >--------------------------------------------------------------- commit 986c3986e50d989c4d19489b4e56a19e9fc2c440 Author: Duncan Coutts <[email protected]> Date: Wed Mar 18 09:17:30 2009 +0000 Solaris 9 /bin/sh doesn't like the ! syntax in bootstrap.sh >--------------------------------------------------------------- cabal-install/bootstrap.sh | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/cabal-install/bootstrap.sh b/cabal-install/bootstrap.sh index 6896421..544e9f1 100644 --- a/cabal-install/bootstrap.sh +++ b/cabal-install/bootstrap.sh @@ -58,7 +58,13 @@ ${GHC_PKG} list > ghc-pkg.list \ need_pkg () { PKG=$1 VER_MATCH=$2 - ! grep " ${PKG}-${VER_MATCH}" ghc-pkg.list > /dev/null 2>&1 + if grep " ${PKG}-${VER_MATCH}" ghc-pkg.list > /dev/null 2>&1 + then + return 1; + else + return 0; + fi + #Note: we cannot use "! grep" here as Solaris 9 /bin/sh doesn't like it. } info_pkg () { _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
