:
# @(#) $Header: Cpioinstall,v 70.2 92/03/09 15:34:39 ssa Exp $
if [ "$1" = "" ]
then
	echo "usage: $0  directory  - files"
	exit 1
elif [ "$2" != "-" ]
then
	echo "usage: $0 directory  -  files"
	exit 1
elif [ "$3" = "" ]
then
	echo "usage: $0 directory -  files"
	exit 1
else
	if [ ! -d $1 ]
	then
		Mkdir $1
	fi
	if [ ! -d $1 ]
	then
		echo $1 is not a directory
		exit 1
	fi
	dir=$1
	shift
	shift
	if ls -d $* > /dev/null
	then
		ls -d $* | cpio -pmvdu $dir
	else
		exit 1
	fi
fi
