From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25389 invoked by alias); 20 Feb 2009 05:54:23 -0000 Received: (qmail 25383 invoked by alias); 20 Feb 2009 05:54:23 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - build: stricter install invokation To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 0334cb4b3608b8d47c019b80995766552637b3a6 X-Git-Newrev: 699334f9021ceb2db00a49fce65b6263969052c1 From: "Fabio M. Di Nitto" Message-Id: <20090220055401.CFEF312030E@lists.fedorahosted.org> Date: Fri, 20 Feb 2009 05:54:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00529.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=699334f9021ceb2db00a49fce65b6263969052c1 Commit: 699334f9021ceb2db00a49fce65b6263969052c1 Parent: 0334cb4b3608b8d47c019b80995766552637b3a6 Author: Fabio M. Di Nitto AuthorDate: Fri Feb 20 06:53:24 2009 +0100 Committer: Fabio M. Di Nitto CommitterDate: Fri Feb 20 06:53:24 2009 +0100 build: stricter install invokation make install fails in shell loops to detect errors. Signed-off-by: Fabio M. Di Nitto --- make/install.mk | 4 ++++ make/man.mk | 2 ++ rgmanager/src/resources/Makefile | 4 ++++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/make/install.mk b/make/install.mk index 5028e74..9b72547 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 @@ -25,6 +26,7 @@ ifdef LCRSOT endif ifdef INITDT install -d ${initddir} + set -e; \ for i in ${INITDT}; do \ if [ -f $$i ]; then \ install -m755 $$i ${initddir}; \ @@ -35,6 +37,7 @@ ifdef INITDT endif ifdef UDEVT install -d ${DESTDIR}/etc/udev/rules.d + set -e; \ for i in ${UDEVT}; do \ install -m644 $(S)/$$i ${DESTDIR}/etc/udev/rules.d; \ done @@ -57,6 +60,7 @@ ifdef FENCEAGENTSLIB 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; \ diff --git a/rgmanager/src/resources/Makefile b/rgmanager/src/resources/Makefile index c9ed518..08d5489 100644 --- a/rgmanager/src/resources/Makefile +++ b/rgmanager/src/resources/Makefile @@ -48,15 +48,19 @@ $(TARGET3): install: install -d ${sharedir}/utils + set -e; \ for i in $(RESOURCES); do \ install -m755 $(S)/$$i ${sharedir}; \ done + set -e; \ for i in $(METADATA) $(EVENT_TARGETS); do \ install -m644 $(S)/$$i ${sharedir}; \ done + set -e; \ for i in $(GENERAL_TARGETS); do \ install -m755 $(S)/$$i ${sharedir}; \ done + set -e; \ for i in $(UTIL_TARGETS); do \ install -m755 $(S)/$$i ${sharedir}/utils; \ done