#
# rmkdir
#
# Recursively make directories.
#

set -ue
myname=${0}

for dir
do
	if [ ! -d "${dir}" ]
	then
		${myname} "`ignore expr \
			${dir-.}'/' : '\(/\)[^/]*/$' \
			\| ${dir-.}'/' : '\(.*[^/]\)//*[^/][^/]*//*$' \
			\| .`"
		mkdir "${dir}"
	fi
done