# : makedir.SH,v 24920Revision: 4.0.1.1 24920Date: 92/06/08 14:24:55 $
# Revision 4.0.1.1 92/06/08 14:24:55 lwall
# patch20: SH files didn't work well with symbolic links
# Revision 4.0 91/03/20 01:27:13 lwall
export PATH ||
(echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh
$0; kill $$
)
/bin
/echo "makedir pathname filenameflag"
: guarantee one slash before
1st component
: strip last component
if it is to be a filename
X1
) set `/bin/echo $1 | /usr/bin/sed 's:\(.*\)/[^/]*$:\1:'` ;;
: return reasonable status
if nothing to be created
set `echo $1 | /usr/bin/sed 's:\(.*\)/:\1 :'`
/bin
/mkdir
$dir >/dev
/null
2>&1