Permalink
Browse files

Remove sf support from download-pk3.sh. Default to the cdn.

  • Loading branch information...
DolceTriade committed Dec 7, 2015
1 parent 8f8dd95 commit a4fa831f521ca1beeadd6a48c98e9dd52e3324b2
Showing with 2 additions and 10 deletions.
  1. +2 −10 download-pk3.sh
@@ -20,13 +20,12 @@ VERSION=0.46

# Download from here
CDN_URL="http://cdn.unvanquished.net/$VERSION/pkg/"
BASE_URL='http://downloads.sourceforge.net/project/unvanquished/Assets/'
BASE_URL="$CDN_URL"
MIRROR_DOMAIN='dl.sourceforge.net'
MIRROR_URL="http://%s.$MIRROR_DOMAIN/project/unvanquished/Assets/"

MD5SUMS_BASE="md5sums$VERSION"
MD5SUMS_CDN='md5sums'
MD5SUMS="$MD5SUMS_BASE"
MD5SUMS="$MD5SUMS_CDN"

# Default destination directory
case "$(uname -s)" in
@@ -51,7 +50,6 @@ while test -z "$DONE"; do
echo "Options:"
echo " -v, --verify Verify downloaded .pk3s"
echo " --source MIRROR Download from MIRROR"
echo " --cdn Download from cdn.unvanquished.net"
echo
echo "Mirror URL examples (not real URLs!):"
echo " http://example.com/unvanquished/"
@@ -75,12 +73,6 @@ while test -z "$DONE"; do
if echo "$BASE_URL" | grep -vq '[./]'; then
BASE_URL="$(printf "$MIRROR_URL" "$1")"
fi
MD5SUMS="$MD5SUMS_BASE"
;;

--cdn)
shift
BASE_URL="$CDN_URL"
MD5SUMS="$MD5SUMS_CDN"
;;

0 comments on commit a4fa831

Please sign in to comment.