Dino, Jason, Thanks for that. Applied.
On Sat, 2009-06-13 at 11:30 -0400, Dino Morelli wrote: > > 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 > > I've taken this code, added to it and integrated it into cabal-install 0.7 > And then tested it with this setup: > > Debian GNU/Linux squeeze (testing) > GHC 6.10.3 > Cabal 1.7.2 > cabal-install 0.7 > > darcs patch attached with the changes below. Thanks Jason! > > > - Dino Morelli > > > ----- > Sat Jun 13 11:09:58 EDT 2009 Dino Morelli <[email protected]> > * Now supporting explicit --user or --global switches in bootstrap.sh with > usage feedback for bad args > This change was adapted from work submitted to the cabal-devel mailing > list by Jason Dusek. > { > hunk ./bootstrap.sh 21 > +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: ${arg}" > + echo "usage: bootstrap.sh [OPTION]" > + echo > + echo "options:" > + echo " --user Install for the local user (default)" > + echo " --global Install systemwide" > + exit;; > + esac > +done > hunk ./bootstrap.sh 164 > - ./Setup configure --user "--prefix=${PREFIX}" \ > + ./Setup configure ${SCOPE_OF_INSTALLATION} "--prefix=${PREFIX}" \ > } > ----- > > -- > Dino Morelli email: [email protected] web: http://ui3.info/d/ irc: dino- > pubkey: http://ui3.info/d/dino-4AA4F02D-pub.gpg > _______________________________________________ cabal-devel mailing list > [email protected] http://www.haskell.org/mailman/listinfo/cabal-devel _______________________________________________ cabal-devel mailing list [email protected] http://www.haskell.org/mailman/listinfo/cabal-devel
