=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/Attic/mkinstalldirs,v retrieving revision 1.1 retrieving revision 1.1.1.3 diff -u -p -r1.1 -r1.1.1.3 --- OpenXM_contrib/gmp/Attic/mkinstalldirs 2000/01/10 15:35:22 1.1 +++ OpenXM_contrib/gmp/Attic/mkinstalldirs 2003/08/25 16:05:59 1.1.1.3 @@ -4,6 +4,8 @@ # Created: 1993-05-16 # Public domain +# $Id: mkinstalldirs,v 1.1.1.3 2003/08/25 16:05:59 ohara Exp $ + errstatus=0 for file @@ -12,15 +14,21 @@ do shift pathcomp= - for d in ${1+"$@"} ; do + for d + do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" 1>&2 - mkdir "$pathcomp" || errstatus=$? + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi fi pathcomp="$pathcomp/"