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}" \
_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel