From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- vendor/voclient/common/curl-7.20.1/mkinstalldirs | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vendor/voclient/common/curl-7.20.1/mkinstalldirs (limited to 'vendor/voclient/common/curl-7.20.1/mkinstalldirs') 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 +# 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 -- cgit