From: Tom Yu Date: Fri, 23 Jul 1999 03:07:13 +0000 (+0000) Subject: * mkinstalldirs: New file; from autoconf-2.13 X-Git-Tag: krb5-1.1-beta1~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f7f8da6b84a96ffda268b99dc8622eeb2e87b64;p=krb5.git * mkinstalldirs: New file; from autoconf-2.13 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11584 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 721307ad6..1986c64cf 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,5 +1,7 @@ 1999-07-22 Tom Yu + * mkinstalldirs: New file; from autoconf-2.13. + * config.guess, config.sub, install-sh: Update from autoconf-2.13. Tue May 18 20:06:01 1999 Danilo Almeida diff --git a/src/config/mkinstalldirs b/src/config/mkinstalldirs new file mode 100644 index 000000000..6b3b5fc5d --- /dev/null +++ b/src/config/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +# $Id$ + +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 $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here