From 69fdbf8ba296a401a4069cafbaf182b963b9fb16 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 10 Jun 2002 14:44:00 -0500 Subject: [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 --- config/commence.in | 1 + config/conclude.in | 8 ++++---- 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 \ -- cgit v0.12