projects
/
platform
/
upstream
/
automake.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c2a576
)
Don't invoke mkdir if the directories all already exist.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 1 Oct 2001 06:34:38 +0000
(06:34 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 1 Oct 2001 06:34:38 +0000
(06:34 +0000)
This saves unnecessary output of "mkdir -p -- FOO" when
FOO already exists.
lib/mkinstalldirs
patch
|
blob
|
history
diff --git
a/lib/mkinstalldirs
b/lib/mkinstalldirs
index
8e7cec4
..
10ad9ba
100755
(executable)
--- a/
lib/mkinstalldirs
+++ b/
lib/mkinstalldirs
@@
-4,7
+4,7
@@
# Created: 1993-05-16
# Public domain
# Created: 1993-05-16
# Public domain
-# $Id: mkinstalldirs,v 1.
8 2001/09/29 05:50:16
eggert Exp $
+# $Id: mkinstalldirs,v 1.
9 2001/10/01 06:34:38
eggert Exp $
errstatus=0
dirmode=""
errstatus=0
dirmode=""
@@
-28,6
+28,15
@@
while test $# -gt 0 ; do
esac
done
esac
done
+for file
+do
+ if test -d "$file"; then
+ shift
+ else
+ break
+ fi
+done
+
case $# in
0) exit 0 ;;
esac
case $# in
0) exit 0 ;;
esac