1 case $PERL_CONFIG_SH in
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)"
17 $spitshell >makedir <<!GROK!THIS!
22 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
26 $echo "makedir pathname filenameflag"
31 : guarantee one slash before 1st component
37 : strip last component if it is to be a filename
39 X1) set \`$echo \$1 | $sed 's:\(.*\)/[^/]*\$:\1:'\` ;;
43 : return reasonable status if nothing to be created
44 if $test -d "\$1" ; then
53 set \`echo \$1 | $sed 's:\(.*\)/:\1 :'\`
64 $mkdir \$dir >/dev/null 2>&1