*** empty log message ***
authordjm <djm>
Fri, 13 Aug 1993 15:07:14 +0000 (15:07 +0000)
committerdjm <djm>
Fri, 13 Aug 1993 15:07:14 +0000 (15:07 +0000)
mkinstalldirs

index 1900b49..0e29377 100755 (executable)
@@ -7,27 +7,29 @@ defaultIFS='
 '
 IFS="${IFS-${defaultIFS}}"
 
+errstatus=0
+
 for file in ${1+"$@"} ; do 
    oIFS="${IFS}"
    # Some sh's can't handle IFS=/ for some reason.
    IFS='%'
    set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'`
    IFS="${oIFS}"
-   test ".${1}" = "." && shift
 
    pathcomp=''
 
-   while test $# -ne 0 ; do
-     pathcomp="${pathcomp}${1}"
-     shift
+   for d in ${1+"$@"} ; do
+     pathcomp="${pathcomp}${d}"
 
      if test ! -d "${pathcomp}"; then
         echo "mkdir $pathcomp" 1>&2
-        mkdir "${pathcomp}"
+        mkdir "${pathcomp}" || errstatus=$?
      fi
 
      pathcomp="${pathcomp}/"
    done
 done
 
+exit $errstatus
+
 # eof