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