X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mkdirs.sh;fp=mkinstalldirs;h=59fc39c21ae935ca5a29207312a137f8614b76bd;hp=ffe7494c4073b0569f91accd851b80b4ad86776d;hb=5a9c046f10f72b47ad32801a8e54fe3d05aa8051;hpb=33b3156f43919fb75726db2647d3364037d9e1d5 diff --git a/mkinstalldirs b/mkdirs.sh old mode 100755 new mode 100644 similarity index 55% rename from mkinstalldirs rename to mkdirs.sh index ffe7494c..59fc39c2 --- a/mkinstalldirs +++ b/mkdirs.sh @@ -1,10 +1,12 @@ #! /bin/sh +# $Id: mkdirs.sh,v 1.5 2007/03/25 22:29:46 tom Exp $ +# ----------------------------------------------------------------------------- # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Last modified: 1994-03-25 # Public domain -# +# ----------------------------------------------------------------------------- errstatus=0 umask 022 @@ -24,8 +26,19 @@ for file in ${1+"$@"} ; do echo "mkdir $pathcomp" 1>&2 case "$pathcomp" in [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]: ) - ;; # DOSISH systems - * ) mkdir "$pathcomp" || errstatus=$? ;; + ;; # DOSISH systems + * ) + mkdir "$pathcomp" + errstatus=$? + if test $errstatus != 0 + then + # may have failed if invoked in a parallel "make -j# install" + if test -d "$pathcomp" + then + errstatus=0 + fi + fi + ;; esac fi