X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mkinstalldirs;h=ffe7494c4073b0569f91accd851b80b4ad86776d;hp=b2e45ea2ec2907f9c3a1c2548944b9cf9b252f6c;hb=0c9774ef662e2137933ac0c79077eaa9c8981357;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/mkinstalldirs b/mkinstalldirs index b2e45ea2..ffe7494c 100755 --- a/mkinstalldirs +++ b/mkinstalldirs @@ -4,11 +4,12 @@ # Created: 1993-05-16 # Last modified: 1994-03-25 # Public domain +# -umask 022 errstatus=0 +umask 022 -for file in ${1+"$@"} ; do +for file in ${1+"$@"} ; do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift @@ -21,7 +22,11 @@ for file in ${1+"$@"} ; do if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 - mkdir "$pathcomp" || errstatus=$? + case "$pathcomp" in + [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]: ) + ;; # DOSISH systems + * ) mkdir "$pathcomp" || errstatus=$? ;; + esac fi pathcomp="$pathcomp/"