2 # mass_install - Install zero or more files in a directory
3 # Gordon Matzigkeit <gord@fig.org>, 2001-09-26
4 # Copyright (C) 2001 Cluster File Systems, Inc.
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
9 # Usage: mass_install DIR [FILES...] [OPTS...]
16 if test -n "$OPTS"; then
17 # Everything from here is an option.
21 # We found the first option.
24 if test -z "$DIR"; then
25 # We don't have a directory yet.
36 if test -n "$DIR" && test -n "$FILES"; then
37 # Make sure the directory exists.
38 if test ! -d "$DIR"; then
45 base=`echo "$f" | sed -e 'sX.*/XX'`
46 cmd="install $OPTS $f $DIR/$base"