aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/mkinstalldirs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-07-03 09:24:12 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-07-03 09:24:12 +0000
commit15589c42fa2774d2f8ee650f4f31eb8d3a861316 (patch)
tree27e79485df3c9195e6fe58960df47f675f41f1e9 /contrib/ncurses/mkinstalldirs
parent6b9085fd58b7602b14be0cd2059285baa764a7ee (diff)
downloadsrc-15589c42fa2774d2f8ee650f4f31eb8d3a861316.tar.gz
src-15589c42fa2774d2f8ee650f4f31eb8d3a861316.zip
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/
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=62449
Diffstat (limited to 'contrib/ncurses/mkinstalldirs')
-rwxr-xr-xcontrib/ncurses/mkinstalldirs10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/ncurses/mkinstalldirs b/contrib/ncurses/mkinstalldirs
index b2e45ea2ec29..8f0503e0382f 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/"