Handle cases like lgrind
This commit is contained in:
parent
42ad82509d
commit
7f2c930088
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Sample script to use with fetch-makefile: fetch all distfiles
|
# Sample script to use with fetch-makefile: fetch all distfiles
|
||||||
|
|
||||||
# $OpenBSD: fetch-all,v 1.2 2000/03/27 02:16:48 espie Exp $
|
# $OpenBSD: fetch-all,v 1.3 2000/12/19 15:10:37 espie Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2000 Marc Espie.
|
# Copyright (c) 2000 Marc Espie.
|
||||||
#
|
#
|
||||||
@ -26,21 +26,23 @@
|
|||||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
file=`echo $1|sed -e "s,^${DIST_SUBDIR:-.}/,,"`
|
||||||
dir=`dirname $1`
|
dir=`dirname $1`
|
||||||
file=`basename $1`
|
check=`basename $1`
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
cd $dir
|
cd $dir
|
||||||
for site in ${SITES}
|
for site in ${SITES}
|
||||||
do
|
do
|
||||||
if ftp ${site}$file
|
if ftp ${site}$file
|
||||||
then
|
then
|
||||||
case `${CIPHER} <$file` in
|
case `${CIPHER} <$check` in
|
||||||
${CKSUM})
|
${CKSUM})
|
||||||
echo "Fetch, ok: $@"
|
echo "Fetch, ok: $@"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*)
|
*)
|
||||||
echo "Fetch, bad checksum: $@ on ${site}"
|
echo "Fetch, bad checksum: $@ on ${site}"
|
||||||
rm -f $file;;
|
rm -f $1;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user