From d5ddbaec4e8ea42cbb536789a4f7a9f863510a11 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 19 Dec 1995 09:21:29 +0000 Subject: raw import of cvs-1.6 --- gnu/usr.bin/cvs/mkinstalldirs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'gnu/usr.bin/cvs') 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 # 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/" -- cgit v1.2.3