--global for bootstrap.sh

20 May
2009
20 May
'09
4:52 a.m.
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}" \
5977
Age (days ago)
5977
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jason Dusek