3 if test ! -f config.sh; then
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
13 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
15 echo "Extracting makedir (with variable substitutions)"
16 $spitshell >makedir <<!GROK!THIS!
18 # $Header: makedir.SH,v 1.0 87/12/18 13:05:32 root Exp $
20 # $Log: makedir.SH,v $
21 # Revision 1.0 87/12/18 13:05:32 root
24 # Revision 4.3.1.1 85/05/10 11:35:14 lwall
27 # Revision 4.3 85/05/01 11:42:31 lwall
28 # Baseline for release with 4.3bsd.
31 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
35 $echo "makedir pathname filenameflag"
40 : guarantee one slash before 1st component
46 : strip last component if it is to be a filename
48 X1) set \`$echo \$1 | $sed 's:\(.*\)/[^/]*\$:\1:'\` ;;
52 : return reasonable status if nothing to be created
53 if $test -d "\$1" ; then
62 set \`echo \$1 | $sed 's:\(.*\)/:\1 :'\`
73 $mkdir \$dir >/dev/null 2>&1