Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
14e748d9
Commit
14e748d9
authored
Mar 09, 2012
by
Andres Löh
Browse files
bootstrap with --global should still respect $PREFIX
Thanks to milkypostman for providing the patch. Closes ticket #926.
parent
1eb87af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/bootstrap.sh
View file @
14e748d9
...
...
@@ -7,7 +7,6 @@
# It expects to be run inside the cabal-install directory.
# install settings, you can override these by setting environment vars
PREFIX
=
${
PREFIX
:-${
HOME
}
/.cabal
}
#VERBOSE
#EXTRA_CONFIGURE_OPTS
...
...
@@ -20,6 +19,7 @@ FETCH=${FETCH:-fetch}
TAR
=
${
TAR
:-
tar
}
GUNZIP
=
${
GUNZIP
:-
gunzip
}
SCOPE_OF_INSTALLATION
=
"--user"
DEFAULT_PREFIX
=
"
${
HOME
}
/.cabal"
for
arg
in
$*
...
...
@@ -30,7 +30,7 @@ do
shift
;;
"--global"
)
SCOPE_OF_INSTALLATION
=
${
arg
}
PREFIX
=
"/usr/local"
DEFAULT_
PREFIX
=
"/usr/local"
shift
;;
*
)
echo
"Unknown argument or option, quitting:
${
arg
}
"
...
...
@@ -43,6 +43,7 @@ do
esac
done
PREFIX
=
${
PREFIX
:-${
DEFAULT_PREFIX
}}
# Versions of the packages to install.
# The version regex says what existing installed versions are ok.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment