summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-09-23 09:01:30 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-09-23 09:01:30 (GMT)
commitde93207053359bf565746824ee3613f06b9b578f (patch)
tree461bec8ceba34dfa9dab431c3e7c48445b2c9543
parent7059a124502ba128d1a8f941fa6f29079891c99b (diff)
downloadhdf5-de93207053359bf565746824ee3613f06b9b578f.zip
hdf5-de93207053359bf565746824ee3613f06b9b578f.tar.gz
hdf5-de93207053359bf565746824ee3613f06b9b578f.tar.bz2
[svn-r4469]
Purpose: Bug Fix Description: Some systems can't handle a test like: if ! test -d "foo"; then Solution: Removed the "!" and made a success a "nop".
-rwxr-xr-xbin/mkdirs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mkdirs b/bin/mkdirs
index 3d689ad..685c7c0 100755
--- a/bin/mkdirs
+++ b/bin/mkdirs
@@ -16,7 +16,9 @@ chmodprog="${CHMODPROG-chmod}"
mkdirprog="${MKDIRPROG-mkdir}"
make_dir () {
- if ! test -d $1; then
+ if test -d $1; then
+ :
+ else
make_dir `echo $1 | sed -e 's#/[^/]*$##'`
$mkdirprog $1
$chmodprog 755 $1