2 # mass_install - Install zero or more files in a directory
3 # Gordon Matzigkeit <gord@fig.org>, 2001-09-26
5 # Usage: mass_install DIR [FILES...] [OPTS...]
12 if test -n "$OPTS"; then
13 # Everything from here is an option.
17 # We found the first option.
20 if test -z "$DIR"; then
21 # We don't have a directory yet.
32 if test -n "$DIR" && test -n "$FILES"; then
33 # Make sure the directory exists.
34 if test ! -d "$DIR"; then
41 base=`echo "$f" | sed -e 'sX.*/XX'`
42 cmd="install $OPTS $f $DIR/$base"