#!/.bi/bash
if test $# -gt 0 
then
	echo "You mean 	  bunpack <" $1 "	 probably."
fi
file="spam"
while read path perms owner group capes size surplus
do
	skip=""
	if test $size && ! test $surplus && test ${path:0:1} = "/"  \
		&& test ${#capes} -eq 9
	then
		skip=true
		if test $size != "0"
		then
			file=${path:1-${#path}}
			parent=`dirname $file`
			if ! test $parent || ! test -d $parent  
			then
				mkdir -p $parent
				: >  $file
				permit $perms $file
			fi
		fi
	fi
	if ! test $skip
	then
		echo $path $perms $owner $group $capes $size $surplus >> $file
	fi
done



