This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfs1-utils: master - build: stricter install invokation


Gitweb:        http://git.fedorahosted.org/git/gfs1-utils.git?p=gfs1-utils.git;a=commitdiff;h=b6500c56ca2f2eaf83bc69df5bc3802209b1232a
Commit:        b6500c56ca2f2eaf83bc69df5bc3802209b1232a
Parent:        c567cf8682e677a8c0f490fa667b75c5cb916f82
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Fri Feb 20 06:53:24 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Feb 25 11:16:58 2009 +0100

build: stricter install invokation

make install fails in shell loops to detect errors.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 make/install.mk |    3 +++
 make/man.mk     |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/make/install.mk b/make/install.mk
index b99b861..be46e55 100644
--- a/make/install.mk
+++ b/make/install.mk
@@ -8,6 +8,7 @@ ifdef LIBSYMT
 endif
 ifdef INCDIRT
 	install -d ${incdir}
+	set -e; \
 	for i in ${INCDIRT}; do \
 		install -m644 $(S)/$$i ${incdir}; \
 	done
@@ -21,6 +22,7 @@ ifdef SBINSYMT
 endif
 ifdef INITDT
 	install -d ${initddir}
+	set -e; \
 	for i in ${INITDT}; do \
 		if [ -f $$i ]; then \
 			install -m755 $$i ${initddir}; \
@@ -39,6 +41,7 @@ ifdef KHEADT
 endif
 ifdef DOCS
 	install -d ${docdir}
+	set -e; \
 	for i in ${DOCS}; do \
 		install -m644 $(S)/$$i ${docdir}; \
 	done
diff --git a/make/man.mk b/make/man.mk
index b43efc1..26f6401 100644
--- a/make/man.mk
+++ b/make/man.mk
@@ -1,6 +1,7 @@
 all:
 
 install:
+	set -e; \
 	for i in ${TARGET}; do \
 		p=`echo $$i | sed -e 's#.*\.##g'`; \
 		install -d ${mandir}/man$$p; \
@@ -8,6 +9,7 @@ install:
 	done
 
 uninstall:
+	set -e; \
 	for i in ${TARGET}; do \
 		p=`echo $$i | sed -e 's#.*\.##g'`; \
 		${UNINSTALL} $$i ${mandir}/man$$p; \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]