summaryrefslogtreecommitdiff
path: root/mkinstalldirs
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1998-09-18 02:02:02 +0000
committerManish Singh <yosh@src.gnome.org>1998-09-18 02:02:02 +0000
commitebc96dde356e64305c6411febfc3c85ff03f3e47 (patch)
tree1f1120f2f89e525ef531dcb6a19fc961657ca99d /mkinstalldirs
parent90b28c92bca2ec1797b9a2077b857ca3e43054c1 (diff)
downloadglib-ebc96dde356e64305c6411febfc3c85ff03f3e47.tar.gz
removed from repository
* config.h.in: removed from repository * install-sh * missing * mkinstalldirs: updated to latest automake version -Yosh
Diffstat (limited to 'mkinstalldirs')
-rwxr-xr-xmkinstalldirs18
1 files changed, 11 insertions, 7 deletions
diff --git a/mkinstalldirs b/mkinstalldirs
index fef1eb941..d0fd194fd 100755
--- a/mkinstalldirs
+++ b/mkinstalldirs
@@ -2,17 +2,20 @@
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
-# Last modified: 1994-03-25
# Public domain
+# $Id$
+
errstatus=0
-for file in ${1+"$@"} ; do
+for file
+do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
- for d in ${1+"$@"} ; do
+ for d
+ do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
@@ -20,11 +23,12 @@ for file in ${1+"$@"} ; do
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
- mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
- fi
- if test ! -d "$pathcomp"; then
- errstatus=$lasterr
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ fi
fi
pathcomp="$pathcomp/"