#!/bin/ksh
#
#	MKDIR2
#	All Rights Reserved 1992 (C)
#

typeset -i c=0 n=0
SP=`echo $1 | sed 's/\// /g'`
DEPATH=
echo $SP

for i in $SP
do
	n=$n+1
done
#n=$n-1

for i in $SP
do
	if [ $c -lt $n ]
	then
		DEPATH="$DEPATH/$i"
		c=$c+1;
		mkdir $DEPATH 2> /dev/null
		chmod 755 $DEPATH
	fi
done
