summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-06-10 19:44:00 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-06-10 19:44:00 (GMT)
commit69fdbf8ba296a401a4069cafbaf182b963b9fb16 (patch)
treeb581d3f1ab1efe788c6cae8dbbfb28626a48554a
parentc11f16f9c01cc7bf6d0a1dc97b108f3787fd5a5b (diff)
downloadhdf5-69fdbf8ba296a401a4069cafbaf182b963b9fb16.zip
hdf5-69fdbf8ba296a401a4069cafbaf182b963b9fb16.tar.gz
hdf5-69fdbf8ba296a401a4069cafbaf182b963b9fb16.tar.bz2
[svn-r5578] Purpose:
Bug 377 Fix Description: We were using "mkdir" to create the install directories instead of usinig the "install" program. This would cause a problem if the directory you're installing into didn't exist. Solution: Changed to use the "install" program instead. Platforms tested: Linux
-rw-r--r--config/commence.in1
-rw-r--r--config/conclude.in8
2 files changed, 5 insertions, 4 deletions
diff --git a/config/commence.in b/config/commence.in
index e9d75cc..705d38c 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -28,6 +28,7 @@ CP=cp
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
+INSTALL_DIR=$(INSTALL) -d -m 755
RUNSERIAL=@RUNSERIAL@
RUNPARALLEL=@RUNPARALLEL@
RUNTEST=$(RUNSERIAL)
diff --git a/config/conclude.in b/config/conclude.in
index 7777a45..ff0f812 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -66,13 +66,13 @@ check test _test: tests
## Make installation directories directories if they don't exist.
$(libdir):
- mkdir $@ && chmod 755 $@
+ $(INSTALL_DIR) $@
$(includedir):
- mkdir $@ && chmod 755 $@
+ $(INSTALL_DIR) $@
$(bindir):
- mkdir $@ && chmod 755 $@
+ $(INSTALL_DIR) $@
## Install the library, the public header files, and public programs.
install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
@@ -105,7 +105,7 @@ install-doc: $(PUB_DOCS)
@if test -d $(DOCDIR) ; then \
:; \
else \
- mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \
+ $(INSTALL_DIR) $(DOCDIR);
fi
@for d in X $(SUBDIRS); do \
if test $$d != X; then \