X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgetsf;fp=usr_bin%2Fgetsf;h=0000000000000000000000000000000000000000;hb=c08b156abb0b2b1b1335cb1ada0c08758553238b;hp=dbf9a20f5d08db96920b167a82f50f30508294f6;hpb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;p=grml-scripts.git diff --git a/usr_bin/getsf b/usr_bin/getsf deleted file mode 100755 index dbf9a20..0000000 --- a/usr_bin/getsf +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Filename: getsf -# Purpose: download project from sourceforge.net -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -if ! which wget >/dev/null 2>&1 ; then - echo "wget is not available. Exiting." 1>&2 - exit 1 -fi - -if [ -z "$1" ] ; then - echo "$0 - download project from sourceforge.net" 1>&2 - echo 1>&2 - echo "Usage: $0 " 1>&2 - - echo 1>&2 " -Usage examples: - - $0 htop-0.6.3.tar.gz - $0 http://prdownloads.sourceforge.net/htop/htop-0.6.3.tar.gz - MIRROR=puzzle $0 http://prdownloads.sourceforge.net/htop/htop-0.6.3.tar.gz - -Available mirrors: - - superb-east (US), jaist (JP), ovh (FR), optusnet (AU), kent (UK), mesh (DE), - superb-west (US), easynews (US), surfnet (NL), ufpr (BR), heanet (IE), - nchc (TW), umn (US), belnet (BE), puzzle (CH), switch (CH) - -Send bug reports to Michael Prokop " - exit 1 -fi - -[ -n "$MIRROR" ] || MIRROR=mesh # set default mirror if not already set - -case "$PROG" in - *http://*) - PROG=${PROG##*/} - BASENAME=${PROG%%-*} - BASENAME=${BASENAME%%_*} - BASENAME=$(echo $BASENAME| tr 'A-Z' 'a-z') - wget http://$MIRROR.dl.sourceforge.net/sourceforge/$BASENAME/$PROG - ;; - *) - PROG="$1" - BASENAME=${PROG%%-*} - BASENAME=${BASENAME%%_*} - BASENAME=$(echo $BASENAME| tr 'A-Z' 'a-z') - wget http://$MIRROR.dl.sourceforge.net/sourceforge/$BASENAME/$PROG - ;; -esac - -## END OF FILE #################################################################