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 4.0 91/03/20 01:27:13 lwall Locked $
20 # $Log: makedir.SH,v $
21 # Revision 4.0 91/03/20 01:27:13 lwall
26 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
30 $echo "makedir pathname filenameflag"
35 : guarantee one slash before 1st component
41 : strip last component if it is to be a filename
43 X1) set \`$echo \$1 | $sed 's:\(.*\)/[^/]*\$:\1:'\` ;;
47 : return reasonable status if nothing to be created
48 if $test -d "\$1" ; then
57 set \`echo \$1 | $sed 's:\(.*\)/:\1 :'\`
68 $mkdir \$dir >/dev/null 2>&1