install.sh revision 97748
178344Sobrien#! /bin/sh 278344Sobrien# 3171881Smtm# Copyright (c) 1999 Marcel Moolenaar 498184Sgordon# All rights reserved. 578344Sobrien# 678344Sobrien# Redistribution and use in source and binary forms, with or without 7171881Smtm# modification, are permitted provided that the following conditions 8223852Srmacklem# are met: 998184Sgordon# 1. Redistributions of source code must retain the above copyright 10180564Sdougb# notice, this list of conditions and the following disclaimer 1178344Sobrien# in this position and unchanged. 1278344Sobrien# 2. Redistributions in binary form must reproduce the above copyright 1378344Sobrien# notice, this list of conditions and the following disclaimer in the 14171881Smtm# documentation and/or other materials provided with the distribution. 15171881Smtm# 3. The name of the author may not be used to endorse or promote products 16171881Smtm# derived from this software without specific prior written permission 17171881Smtm# 1878344Sobrien# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19171881Smtm# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20171881Smtm# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21125987Smtm# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22171881Smtm# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23168085Smtm# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24231792Sdougb# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25231792Sdougb# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26171871Smtm# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27168085Smtm# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28168085Smtm# 2978344Sobrien# $FreeBSD: head/tools/install.sh 97748 2002-06-02 20:05:59Z schweikh $ 30171871Smtm 31# parse install's options and ignore them completely. 32# XXX - not all options are recognised. 33while [ ! -z $1 ]; do 34 case $1 in 35 -b | -C | -c | -M | -p | -S | -s) shift;; 36 -B | -f | -g | -m | -o) shift; shift;; 37 *) break; 38 esac 39done 40 41# the remaining arguments are assumed to be files/dirs only. 42exec install -p $* 43