echo "Extracting makedir (with variable substitutions)"
$spitshell >makedir <<!GROK!THIS!
# $Header: makedir.SH,v 4.3 85/05/01 11:42:31 lwall Exp $
# Revision 4.3 85/05/01 11:42:31 lwall
# Baseline for release with 4.3bsd.
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
$echo "makedir pathname filenameflag"
: guarantee one slash before 1st component
: strip last component if it is to be a filename
X1) set \`$echo \$1 | $sed 's:\(.*\)/[^/]*\$:\1:'\` ;;
: return reasonable status if nothing to be created
set \`echo \$1 | $sed 's:\(.*\)/:\1 :'\`
$mkdir \$dir >/dev/null 2>&1