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 3.0 89/10/18 15:20:27 lwall Locked $
20 # $Log: makedir.SH,v $
21 # Revision 3.0 89/10/18 15:20:27 lwall
25 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
29 $echo "makedir pathname filenameflag"
34 : guarantee one slash before 1st component
40 : strip last component if it is to be a filename
42 X1) set \`$echo \$1 | $sed 's:\(.*\)/[^/]*\$:\1:'\` ;;
46 : return reasonable status if nothing to be created
47 if $test -d "\$1" ; then
56 set \`echo \$1 | $sed 's:\(.*\)/:\1 :'\`
67 $mkdir \$dir >/dev/null 2>&1