#! /bin/sh
##
##  Make all directories in the path.  		Dan Romike	Nov 1986
##
for i
do
   echo $i | sed 's:/: :g' |\
   while read d
   do
      if expr $i : '/.*' > /dev/null ; then	# check for starting at root
	 cd /
      fi
      for i in $d
      do
	 if [ ! -d $i ] ; then
	    mkdir $i
	 fi
	 cd $i
      done
   done
done
