=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/Attic/mkinstalldirs,v retrieving revision 1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/Attic/mkinstalldirs 2000/01/10 15:35:22 1.1 +++ OpenXM_contrib/gmp/Attic/mkinstalldirs 2000/09/09 14:12:14 1.1.1.2 @@ -4,6 +4,8 @@ # Created: 1993-05-16 # Public domain +# $Id: mkinstalldirs,v 1.1.1.2 2000/09/09 14:12:14 maekawa 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/"