Skip to content

Commit db43daf

Browse files
kusmadscho
authored andcommitted
curl: add a script to install cURL from source
Signed-off-by: Erik Faye-Lund <[email protected]>
1 parent c300458 commit db43daf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

src/curl/release.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
VERSION=7.19.5
4+
DIR=curl-$VERSION
5+
URL=http://curl.haxx.se/download/$DIR.tar.bz2
6+
FILE=${URL##*/}
7+
8+
die () {
9+
echo "$*" >&2
10+
exit 1
11+
}
12+
13+
test -d $DIR || {
14+
test -f $FILE ||
15+
curl -O $URL ||
16+
die "Could not download cURL"
17+
18+
tar xjvf $FILE && (
19+
cd $DIR &&
20+
git init &&
21+
git add . &&
22+
git commit -m "Import of $FILE"
23+
)
24+
} || die "Could not check out cURL"
25+
26+
(cd $DIR &&
27+
./configure --prefix=/mingw --with-ssl=/mingw &&
28+
make &&
29+
index=$(/share/msysGit/pre-install.sh) &&
30+
make install &&
31+
/share/msysGit/post-install.sh $index "Install $FILE"
32+
) || die "Could not install $FILE"

0 commit comments

Comments
 (0)