ia64/xen-unstable

changeset 7438:848f21d57278

Better fix to detect failed patch application when building
guest kernels.
Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
author kaf24@firebug.cl.cam.ac.uk
date Wed Oct 19 13:39:59 2005 +0100 (2005-10-19)
parents 7c951e3eb5ab
children c08e7f0b1ee5
files buildconfigs/Rules.mk
line diff
     1.1 --- a/buildconfigs/Rules.mk	Wed Oct 19 11:53:00 2005 +0100
     1.2 +++ b/buildconfigs/Rules.mk	Wed Oct 19 13:39:59 2005 +0100
     1.3 @@ -80,11 +80,12 @@ clean::
     1.4  	rm -f patches/*/.makedep
     1.5  
     1.6  ref-%/.valid-ref: pristine-%/.valid-pristine
     1.7 +	set -e
     1.8  	rm -rf $(@D)
     1.9  	cp -al $(<D) $(@D)
    1.10 -	which patch || exit 1
    1.11 -	([ -d patches/$* ] && \
    1.12 -	  for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true
    1.13 +	if [ -d patches/$* ] ; then \
    1.14 +	    for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done ; \
    1.15 +	fi
    1.16  	touch $@ # update timestamp to avoid rebuild
    1.17  endif
    1.18