install.sh revision 54310
154310Smarcel#! /bin/sh 254310Smarcel# 354310Smarcel# Copyright (c) 1999 Marcel Moolenaar 454310Smarcel# All rights reserved. 554310Smarcel# 654310Smarcel# Redistribution and use in source and binary forms, with or without 754310Smarcel# modification, are permitted provided that the following conditions 854310Smarcel# are met: 954310Smarcel# 1. Redistributions of source code must retain the above copyright 1054310Smarcel# notice, this list of conditions and the following disclaimer 1154310Smarcel# in this position and unchanged. 1254310Smarcel# 2. Redistributions in binary form must reproduce the above copyright 1354310Smarcel# notice, this list of conditions and the following disclaimer in the 1454310Smarcel# documentation and/or other materials provided with the distribution. 1554310Smarcel# 3. The name of the author may not be used to endorse or promote products 1654310Smarcel# derived from this software withough specific prior written permission 1754310Smarcel# 1854310Smarcel# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1954310Smarcel# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2054310Smarcel# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2154310Smarcel# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2254310Smarcel# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2354310Smarcel# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2454310Smarcel# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2554310Smarcel# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2654310Smarcel# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2754310Smarcel# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2854310Smarcel# 2954310Smarcel# $FreeBSD: head/tools/install.sh 54310 1999-12-08 13:40:44Z marcel $ 3054310Smarcel 3154310Smarcel# parse install's options and ignore them completely. 3254310Smarcel# XXX - not all options are recognised. 3354310Smarcelwhile [ ! -z $1 ]; do 3454310Smarcel case $1 in 3554310Smarcel -C | -c | -D | -M | -p | -s) shift;; 3654310Smarcel -f | -g | -m | -o) shift; shift;; 3754310Smarcel *) break; 3854310Smarcel esac 3954310Smarceldone 4054310Smarcel 4154310Smarcel# the remaining arguments can be fed to cp 4254310Smarcelexec cp -p $* 43