Fix net installer's profile.d copying
[msysgit.git] / bin / apply-from-gmane.sh
blobbeffd3191152dfa367b32f1ba09138e90e0e3b56
1 #!/bin/sh
3 URL="$1"
5 case "$URL" in
6 http://thread.*) URL=http://article.${URL#http://thread.};;
7 http://*|article.gmane.org*) ;;
8 *@*)
9 TMP=.git/apply.tmp
10 curl -D $TMP http://mid.gmane.org/$1 > /dev/null
11 URL=$(sed -n 's/^Location: //p' < $TMP);;
12 *) URL=http://article.gmane.org/gmane.comp.version-control.msysgit/$1;;
13 esac
15 case "$URL" in
16 */raw) ;;
17 *) URL=${URL%/}/raw;;
18 esac
20 curl $URL | git am --whitespace=fix -s