public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - build: stricter install invokation
@ 2009-02-25 10:18 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-02-25 10:18 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=ccca8b92ed7ec7196ce0ae5ae2499bcc523ed7f5
Commit:        ccca8b92ed7ec7196ce0ae5ae2499bcc523ed7f5
Parent:        aa9d5f4680f56ef527d85c1561be82db7a4b5f48
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:18:07 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 0250c17..b3eb9cf 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}; \
@@ -31,6 +33,7 @@ ifdef INITDT
 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; \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-25 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 10:18 gfs2-utils: master - build: stricter install invokation Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).