diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 09:21:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-19 09:21:29 +0000 |
commit | d5ddbaec4e8ea42cbb536789a4f7a9f863510a11 (patch) | |
tree | f23f9e4ed394e96bb521d038030b1b7c9eb46736 /gnu/usr.bin/cvs | |
parent | 84021696d8c125a5095dd98adf778ec2e54d9047 (diff) |
raw import of cvs-1.6
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/mkinstalldirs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/gnu/usr.bin/cvs/mkinstalldirs b/gnu/usr.bin/cvs/mkinstalldirs index 33bb3e86733..91f6d04e17c 100644 --- a/gnu/usr.bin/cvs/mkinstalldirs +++ b/gnu/usr.bin/cvs/mkinstalldirs @@ -1,34 +1,26 @@ -#! /bin/sh +#!/bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 +# Last modified: 1994-03-25 # Public domain -# $Id: mkinstalldirs,v 1.1.1.3 2001/09/28 22:45:35 tholo Exp $ - errstatus=0 -for file -do +for file in ${1+"$@"} ; do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= - for d - do + for d in ${1+"$@"} ; do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - fi + echo "mkdir $pathcomp" 1>&2 + mkdir "$pathcomp" || errstatus=$? fi pathcomp="$pathcomp/" |