2 # mkinstalldirs --- make directory hierarchy
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
5 # Last modified: 1994-03-25
12 for file in ${1+"$@"} ; do
13 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
17 for d in ${1+"$@"} ; do
18 pathcomp="$pathcomp$d"
20 -* ) pathcomp=./$pathcomp ;;
23 if test ! -d "$pathcomp"; then
24 echo "mkdir $pathcomp" 1>&2
26 [a-zA-Z]: ) ;; # DOSISH systems
27 * ) mkdir "$pathcomp" || errstatus=$? ;;
37 # mkinstalldirs ends here