mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 14:56:59 +02:00
Add support for http_proxy environment variable to install quicklisp.
See #153.
This commit is contained in:
parent
ce5a61face
commit
8ce967744c
6
Makefile
6
Makefile
@ -83,8 +83,10 @@ $(QLDIR)/local-projects/esrap:
|
||||
$(QLDIR)/setup.lisp:
|
||||
mkdir -p $(BUILDDIR)
|
||||
curl -o $(BUILDDIR)/quicklisp.lisp http://beta.quicklisp.org/quicklisp.lisp
|
||||
$(CL) $(CL_OPTS) --load $(BUILDDIR)/quicklisp.lisp \
|
||||
--eval '(quicklisp-quickstart:install :path "$(BUILDDIR)/quicklisp")' \
|
||||
$(CL) $(CL_OPTS) --load $(BUILDDIR)/quicklisp.lisp \
|
||||
--load src/getenv.lisp \
|
||||
--eval '(quicklisp-quickstart:install :path "$(BUILDDIR)/quicklisp" \
|
||||
:proxy (getenv "http_proxy"))' \
|
||||
--eval '(quit)'
|
||||
|
||||
quicklisp: $(QLDIR)/setup.lisp ;
|
||||
|
16
src/getenv.lisp
Normal file
16
src/getenv.lisp
Normal file
@ -0,0 +1,16 @@
|
||||
;;;
|
||||
;;; Export a getenv feature so that we can fetch http_proxy at build time.
|
||||
;;;
|
||||
;;; We can't rely on Quicklisp to have installed a modern ASDF with UIOP yet
|
||||
;;; here: we need the feature to pass in the :proxy argument to
|
||||
;;; quicklisp-quickstart:install.
|
||||
;;;
|
||||
|
||||
(in-package :cl-user)
|
||||
|
||||
(defun getenv (name &optional default)
|
||||
"Return the current value for the environment variable NAME, or default
|
||||
when unset."
|
||||
(or #+sbcl (sb-ext:posix-getenv name)
|
||||
#+ccl (ccl:getenv name)
|
||||
default))
|
Loading…
Reference in New Issue
Block a user