summaryrefslogtreecommitdiff
path: root/build/mkdir.sh
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>1999-08-24 05:50:50 +0000
committerRoy T. Fielding <fielding@apache.org>1999-08-24 05:50:50 +0000
commitef31f584249e7389c762991a7aee9fde5d9effca (patch)
tree1e66322c66ed439d09fb794589cfb226574039f6 /build/mkdir.sh
parent77c277683225999b00853b02ebde3bc9cf7f7f6f (diff)
downloadhttpd-ef31f584249e7389c762991a7aee9fde5d9effca.tar.gz
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9 Submitted by: Apache Group git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/mkdir.sh')
-rwxr-xr-xbuild/mkdir.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/build/mkdir.sh b/build/mkdir.sh
new file mode 100755
index 0000000000..4cd33c5671
--- /dev/null
+++ b/build/mkdir.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+##
+## mkdir.sh -- make directory hierarchy
+##
+## Based on `mkinstalldirs' from Noah Friedman <friedman@prep.ai.mit.edu>
+## as of 1994-03-25, which was placed in the Public Domain.
+## Cleaned up for Apache's Autoconf-style Interface (APACI)
+## by Ralf S. Engelschall <rse@apache.org>
+##
+#
+# This script falls under the Apache License.
+# See http://www.apache.org/docs/LICENSE
+
+
+umask 022
+errstatus=0
+for file in ${1+"$@"} ; do
+ set fnord `echo ":$file" |\
+ sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'`
+ shift
+ pathcomp=
+ for d in ${1+"$@"}; do
+ pathcomp="$pathcomp$d"
+ case "$pathcomp" in
+ -* ) pathcomp=./$pathcomp ;;
+ esac
+ if test ! -d "$pathcomp"; then
+ echo "mkdir $pathcomp" 1>&2
+ mkdir "$pathcomp" || errstatus=$?
+ fi
+ pathcomp="$pathcomp/"
+ done
+done
+exit $errstatus
+