diff options
author | peter <peter@FreeBSD.org> | 2000-07-03 09:24:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-07-03 09:24:12 +0000 |
commit | cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e (patch) | |
tree | 27e79485df3c9195e6fe58960df47f675f41f1e9 /contrib/ncurses/mkinstalldirs | |
parent | b22d00e9129b5cb2fee8da1592ca70eff2222f7e (diff) | |
download | FreeBSD-src-cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e.zip FreeBSD-src-cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e.tar.gz |
Import the most recent ncurses 5.1 prerelease (20000701).
Mostly this is intended to resolve the trace() badness once and for all.
Obtained from: ftp://dickey.his.com/ncurses/
Diffstat (limited to 'contrib/ncurses/mkinstalldirs')
-rwxr-xr-x | contrib/ncurses/mkinstalldirs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/ncurses/mkinstalldirs b/contrib/ncurses/mkinstalldirs index b2e45ea..8f0503e 100755 --- a/contrib/ncurses/mkinstalldirs +++ b/contrib/ncurses/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,10 @@ for file in ${1+"$@"} ; do if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 - mkdir "$pathcomp" || errstatus=$? + case "$pathcomp" in + [a-zA-Z]: ) ;; # DOSISH systems + * ) mkdir "$pathcomp" || errstatus=$? ;; + esac fi pathcomp="$pathcomp/" |