- (config.guess, configure, install-sh, mkinstalldirs): Autoconf-2.10
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@424 06827809-a52a-0410-b366-d66718629ded
diff --git a/mkinstalldirs b/mkinstalldirs
index cd1fe0a..d0fd194 100755
--- a/mkinstalldirs
+++ b/mkinstalldirs
@@ -4,6 +4,8 @@
# Created: 1993-05-16
# Public domain
+# $Id$
+
errstatus=0
for file
@@ -12,7 +14,8 @@
shift
pathcomp=
- for d in ${1+"$@"} ; do
+ for d
+ do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
@@ -20,7 +23,12 @@
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
- mkdir "$pathcomp" || errstatus=$?
+
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ fi
fi
pathcomp="$pathcomp/"