download-tarballs revision 0
970N/A#!/bin/sh
970N/A#
970N/A###########################################################################
970N/A#
1072N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
970N/A#
970N/A# Permission is hereby granted, free of charge, to any person obtaining a
970N/A# copy of this software and associated documentation files (the
970N/A# "Software"), to deal in the Software without restriction, including
970N/A# without limitation the rights to use, copy, modify, merge, publish,
970N/A# distribute, and/or sell copies of the Software, and to permit persons
970N/A# to whom the Software is furnished to do so, provided that the above
970N/A# copyright notice(s) and this permission notice appear in all copies of
970N/A# the Software and that both the above copyright notice(s) and this
970N/A# permission notice appear in supporting documentation.
970N/A#
970N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
970N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
970N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
970N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
970N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
970N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
970N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
970N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
970N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
970N/A#
970N/A# Except as contained in this notice, the name of a copyright holder
970N/A# shall not be used in advertising or otherwise to promote the sale, use
970N/A# or other dealings in this Software without prior written authorization
970N/A# of the copyright holder.
970N/A#
970N/A###########################################################################
970N/A#
970N/A# ident "@(#)download-tarballs 1.1 06/03/29 SMI"
970N/A#
970N/A
970N/ACLOBBER=0
970N/AWGET=/usr/sfw/bin/wget
970N/AMAKE_FLAGS="-k"
970N/A
970N/Aset -- `getopt cn $*`
970N/Aif [ $? != 0 ]
970N/Athen
1105N/A echo USAGE: $0 [-c] [-n]
970N/A exit 2
970N/Afi
970N/A
970N/Afor i in $* ; do
970N/A case $i in
970N/A -c) CLOBBER=1; shift;;
970N/A -n) WGET="echo $WGET"; MAKE_FLAGS="$MAKE_FLAGS -n" ; shift;;
970N/A esac
970N/Adone
970N/A
970N/Aset -v
970N/A
970N/Acd open-src
970N/Aif [ $CLOBBER = 1 ] ; then
970N/A rm -rf tarballs
970N/Afi
970N/Aif [ ! -d tarballs ] ; then
970N/A mkdir tarballs
970N/Afi
970N/Amake $MAKE_FLAGS download
970N/Acd ../..
970N/A
970N/Acd XORG_NV/
970N/Aif [ $CLOBBER = 1 ] ; then
970N/A rm -rf tarballs
1130N/Afi
970N/Aif [ ! -d tarballs ] ; then
970N/A mkdir tarballs
970N/Afi
970N/Acd tarballs
970N/Aif [ ! -f X11R6.9.0-src.tar.bz2 ] ; then
970N/A $WGET http://xorg.freedesktop.org/releases/X11R6.9.0/src-single/X11R6.9.0-src.tar.bz2
970N/Afi
970N/Acd ../..
970N/A