Installer: Early check whether the installation directory is writable
[msysgit.git] / bin / apply-from-gmane.sh
blobc6a573563cfd08a4aa85d87b782baf520275f503
1 #!/bin/sh
3 URL="$1"
5 case "$URL" in
6 http://*|article.gmane.org*) ;;
7 *@*)
8 TMP=.git/apply.tmp
9 curl -D $TMP http://mid.gmane.org/$1 > /dev/null
10 URL=$(sed -n 's/^Location: //p' < $TMP);;
11 *) URL=http://article.gmane.org/gmane.comp.version-control.msysgit/$1;;
12 esac
14 case "$URL" in
15 */raw) ;;
16 *) URL=$URL/raw;;
17 esac
19 curl $URL | git am --whitespace=fix -s