aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/common/curl-7.20.1/mkinstalldirs
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /vendor/voclient/common/curl-7.20.1/mkinstalldirs
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/voclient/common/curl-7.20.1/mkinstalldirs')
-rw-r--r--vendor/voclient/common/curl-7.20.1/mkinstalldirs39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/voclient/common/curl-7.20.1/mkinstalldirs b/vendor/voclient/common/curl-7.20.1/mkinstalldirs
new file mode 100644
index 00000000..115df4e3
--- /dev/null
+++ b/vendor/voclient/common/curl-7.20.1/mkinstalldirs
@@ -0,0 +1,39 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+
+errstatus=0
+
+for file
+do
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ shift
+
+ pathcomp=
+ for d
+ do
+ pathcomp="$pathcomp$d"
+ case "$pathcomp" in
+ -* ) pathcomp=./$pathcomp ;;
+ esac
+
+ if test ! -d "$pathcomp"; then
+ echo "mkdir -m0755 $pathcomp" 1>&2
+
+ mkdir -m0755 "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ fi
+ fi
+
+ pathcomp="$pathcomp/"
+ done
+done
+
+exit $errstatus
+
+# mkinstalldirs ends here