]>
jfr.im git - irc/evilnet/x3.git/blob - mkinstalldirs
2 # mkinstalldirs --- make directory hierarchy
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
5 # Last modified: 1994-03-25
11 for file in ${1+"$@"} ; do
12 set fnord
`echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
16 for d
in ${1+"$@"} ; do
17 pathcomp
="$pathcomp$d"
19 -* ) pathcomp
=.
/$pathcomp ;;
22 if test ! -d "$pathcomp"; then
23 echo "mkdir $pathcomp" 1>&2
24 mkdir "$pathcomp" || errstatus
=$?
33 # mkinstalldirs ends here