[commit: Cabal] master: add bootstrap shell script (95b9ea2)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:58:42 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/95b9ea2dee918e7b11cd319c5833be15674b6a1d
>---------------------------------------------------------------
commit 95b9ea2dee918e7b11cd319c5833be15674b6a1d
Author: Duncan Coutts <duncan at haskell.org>
Date: Fri Aug 22 18:17:01 2008 +0000
add bootstrap shell script
At the request of Bjorn.
>---------------------------------------------------------------
cabal-install/bootstrap.sh | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/cabal-install/bootstrap.sh b/cabal-install/bootstrap.sh
new file mode 100644
index 0000000..b2d240c
--- /dev/null
+++ b/cabal-install/bootstrap.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# A script to bootstrap cabal-install.
+
+# It works by downloading and installing the Cabal, zlib and
+# HTTP packages. It then installs cabal-install itself.
+# It expects to be run inside the cabal-install directory.
+
+CABAL_VER="1.4.0.1"
+HTTP_VER="3001.0.4"
+ZLIB_VER="0.4.0.4"
+
+HACKAGE_URL="http://hackage.haskell.org/packages/archive"
+CABAL_URL=${HACKAGE_URL}/Cabal/${CABAL_VER}/Cabal-${CABAL_VER}.tar.gz
+HTTP_URL=${HACKAGE_URL}/HTTP/${HTTP_VER}/HTTP-${HTTP_VER}.tar.gz
+ZLIB_URL=${HACKAGE_URL}/zlib/${ZLIB_VER}/zlib-${ZLIB_VER}.tar.gz
+
+wget ${CABAL_URL} ${HTTP_URL} ${ZLIB_URL}
+
+tar -zxf Cabal-1.4.0.1.tar.gz
+pushd Cabal-1.4.0.1
+ghc --make Setup
+./Setup configure --user && ./Setup build && ./Setup install
+popd
+
+tar -zxf HTTP-3001.0.4.tar.gz
+pushd HTTP-3001.0.4
+runghc Setup configure --user && runghc Setup build && runghc Setup install
+popd
+
+tar -zxf zlib-0.4.0.4.tar.gz
+pushd zlib-0.4.0.4
+runghc Setup configure --user && runghc Setup build && runghc Setup install
+popd
+
+runghc Setup configure --user && runghc Setup build && runghc Setup install
+
+echo
+echo "If all went well then 'cabal' is in $HOME/.cabal/bin/"
+echo "You may want to add this dir to your PATH"
More information about the Cvs-libraries
mailing list