#!/bin/sh
#
# WWW Image Mirror
#   Download and un-tar the ``Pre-converted WWW Images'' from
#       Anthony's Icon Library
#          http://www.cit.gu.edu.au/~anthony/icons/
# Please modify the various shell variable below to suit.
#
# OPTIONS
#   -v    be verbose in the un-tar operation
#   -l    list the gifs in the archive
#
# Anthony Thyssen     25 March 1995      <anthony@cit.gu.edu.au>
#
#-----------------------------------------------------------------
# URL to download
IMAGES="http://www.cit.gu.edu.au/images/Images.tar.gz"

# Where to create the "images" sub-directory of WWW images
# this should be the WWW servers ``document root''
#DIR=/www
DIR=.

# Set the location of various executable needed
LYNX=/usr/local/bin/lynx
GZIP=/usr/local/bin/gzip

tarflags=xf
case "$1" in
-v) tarflags=xvf ;;
-l) tarflags=tvf ;;
esac


# Download and Un-Tar the WWW Images archive.
cd $DIR
$LYNX -dump "$IMAGES" | $GZIP -d | tar $tarflags -

exit 0

