blob: e8ec48b7c69a7956d46daf9a81fc830ef7288fca [file] [log] [blame]
#!/bin/sh
cd "$(dirname "$0")"
VERSION=1.2
DIR=libgsasl-$VERSION
URL=http://mirrors.kernel.org/gnu/gsasl/$DIR.tar.gz
FILE=${URL##*/}
die () {
echo "$*" >&2
exit 1
}
test -d $DIR || {
test -f $FILE ||
curl -O $URL ||
die "Could not download $FILE"
tar xzvf $FILE && (
cd $DIR &&
git init &&
git add . &&
git commit -m "Import of $FILE"
)
} || die "Could not check out $FILE"
(cd $DIR &&
./configure --prefix=/mingw &&
make &&
index=$(/share/msysGit/pre-install.sh) &&
make install &&
/share/msysGit/post-install.sh $index "Install $FILE"
) || die "Could not install $FILE"