2 # Id: mkdirs.sh,v 1.3 2007/03/25 22:29:46 tom Exp
3 # -----------------------------------------------------------------------------
4 # mkinstalldirs --- make directory hierarchy
5 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
7 # Last modified: 1994-03-25
9 # -----------------------------------------------------------------------------
14 for file in ${1+"$@"} ; do
15 set fnord
`echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
19 for d
in ${1+"$@"} ; do
20 pathcomp
="$pathcomp$d"
22 -* ) pathcomp
=.
/$pathcomp ;;
25 if test ! -d "$pathcomp"; then
26 echo "mkdir $pathcomp" 1>&2
28 [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
]: )
33 if test $errstatus != 0
35 # may have failed if invoked in a parallel "make -j# install"
36 if test -d "$pathcomp"
51 # mkinstalldirs ends here