* mkinstalldirs: New file; from autoconf-2.13
authorTom Yu <tlyu@mit.edu>
Fri, 23 Jul 1999 03:07:13 +0000 (03:07 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 23 Jul 1999 03:07:13 +0000 (03:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11584 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/mkinstalldirs [new file with mode: 0644]

index 721307ad68bd3e1e72ba74ccb3c4e154ccdd476e..1986c64cfd30801228653dc51b11ee5949d25a76 100644 (file)
@@ -1,5 +1,7 @@
 1999-07-22  Tom Yu  <tlyu@mit.edu>
 
+       * 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  <dalmeida@mit.edu>
diff --git a/src/config/mkinstalldirs b/src/config/mkinstalldirs
new file mode 100644 (file)
index 0000000..6b3b5fc
--- /dev/null
@@ -0,0 +1,40 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# 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