3
## mkdir.sh -- make directory hierarchy
5
## Based on `mkinstalldirs' from Noah Friedman <friedman@prep.ai.mit.edu>
6
## as of 1994-03-25, which was placed in the Public Domain.
7
## Cleaned up for Apache's Autoconf-style Interface (APACI)
8
## by Ralf S. Engelschall <rse@apache.org>
11
# This script falls under the Apache License.
12
# See http://www.apache.org/docs/LICENSE
17
for file in ${1+"$@"} ; do
18
set fnord `echo ":$file" |\
19
sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'`
22
for d in ${1+"$@"}; do
23
pathcomp="$pathcomp$d"
25
-* ) pathcomp=./$pathcomp ;;
26
?: ) pathcomp="$pathcomp/"
29
if test ! -d "$pathcomp"; then
30
echo "mkdir $pathcomp" 1>&2
31
mkdir "$pathcomp" || errstatus=$?