install.sh revision 54389
1214069Sbschmidt#! /bin/sh
2214069Sbschmidt#
3214069Sbschmidt# Copyright (c) 1999 Marcel Moolenaar
4214069Sbschmidt# All rights reserved.
5214069Sbschmidt#
6214069Sbschmidt# Redistribution and use in source and binary forms, with or without
7214069Sbschmidt# modification, are permitted provided that the following conditions
8214069Sbschmidt# are met:
9214069Sbschmidt# 1. Redistributions of source code must retain the above copyright
10214069Sbschmidt#    notice, this list of conditions and the following disclaimer 
11214069Sbschmidt#    in this position and unchanged.
12214069Sbschmidt# 2. Redistributions in binary form must reproduce the above copyright
13214069Sbschmidt#    notice, this list of conditions and the following disclaimer in the
14214069Sbschmidt#    documentation and/or other materials provided with the distribution.
15214069Sbschmidt# 3. The name of the author may not be used to endorse or promote products
16214069Sbschmidt#    derived from this software withough specific prior written permission
17214069Sbschmidt#
18214069Sbschmidt# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19214069Sbschmidt# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20214069Sbschmidt# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21214069Sbschmidt# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22214069Sbschmidt# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23214069Sbschmidt# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24214069Sbschmidt# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25214069Sbschmidt# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26214069Sbschmidt# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27214069Sbschmidt# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28214069Sbschmidt#
29214069Sbschmidt# $FreeBSD: head/tools/install.sh 54389 1999-12-10 10:14:06Z marcel $
30214069Sbschmidt
31214069Sbschmidt# parse install's options and ignore them completely.
32214069Sbschmidt# XXX - not all options are recognised.
33214069Sbschmidtwhile [ ! -z $1 ]; do
34214069Sbschmidt    case $1 in
35214069Sbschmidt    -C | -c | -D | -M | -p | -s) shift;;
36214069Sbschmidt    -f | -g | -m | -o) shift; shift;;
37214069Sbschmidt    *) break;
38214069Sbschmidt    esac
39214069Sbschmidtdone
40214069Sbschmidt
41214069Sbschmidt# the remaining arguments are assumed to be files/dirs only.
42214069Sbschmidtexec install -C -p $*
43214069Sbschmidt