--global for bootstrap.sh

Jason Dusek jason.dusek at gmail.com
Wed May 20 04:52:21 EDT 2009


  I'm not sure whether this will have the desired effect in all
  cases; however, it works for me. I've long desired a
  `--global` installation for cabal and this seems to at least
  get the bootstrap right.

--
Jason Dusek



diff -rN old-cabal-install/bootstrap.sh new-cabal-install/bootstrap.sh
20a21,38
> SCOPE_OF_INSTALLATION="--user"
>
>
> for arg in $*
> do
>   case "${arg}" in
>     "--user")
>       SCOPE_OF_INSTALLATION=${arg}
>       shift;;
>     "--global")
>       SCOPE_OF_INSTALLATION=${arg}
>       PREFIX="/usr/local"
>       shift;;
>     *)
>       echo "Unknown argument or option, quitting.\n  ${arg}"
>       exit;;
>   esac
> done
135c153
<   ./Setup configure --user "--prefix=${PREFIX}" \
---
>   ./Setup configure ${SCOPE_OF_INSTALLATION} "--prefix=${PREFIX}" \



More information about the cabal-devel mailing list