From 1afa5035a37761e282294ca3007bc5971f976a9b Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 22 Jul 2009 22:22:45 +0200 Subject: [PATCH] curl: add a script to install cURL from source Signed-off-by: Erik Faye-Lund --- src/curl/release.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/curl/release.sh diff --git a/src/curl/release.sh b/src/curl/release.sh new file mode 100644 index 00000000..e5aa4423 --- /dev/null +++ b/src/curl/release.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +VERSION=7.19.5 +DIR=curl-$VERSION +URL=http://curl.haxx.se/download/$DIR.tar.bz2 +FILE=${URL##*/} + +die () { + echo "$*" >&2 + exit 1 +} + +test -d $DIR || { + test -f $FILE || + curl -O $URL || + die "Could not download cURL" + + tar xjvf $FILE && ( + cd $DIR && + git init && + git add . && + git commit -m "Import of $FILE" + ) +} || die "Could not check out cURL" + +(cd $DIR && +./configure --prefix=/mingw --with-ssl=/mingw && +make && +index=$(/share/msysGit/pre-install.sh) && +make install && +/share/msysGit/post-install.sh $index "Install $FILE" +) || die "Could not install $FILE" -- 2.11.4.GIT