From: Harald Hoyer Date: Thu, 11 Aug 2011 09:35:21 +0000 (+0200) Subject: Makefile: do not remove rpmbuild on fail X-Git-Tag: 012~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7b877427b4bb723d4b3271fc939d804bb5393df;p=thirdparty%2Fdracut.git Makefile: do not remove rpmbuild on fail --- diff --git a/Makefile b/Makefile index b9eb852b1..7cafbc63f 100644 --- a/Makefile +++ b/Makefile @@ -71,9 +71,8 @@ rpm: dracut-$(VERSION).tar.bz2 cd rpmbuild; ../git2spec.pl $(VERSION) < ../dracut.spec > dracut.spec; \ rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" \ --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" \ - --define "_rpmdir $$PWD" -ba dracut.spec || :; \ - cd ..; - mv rpmbuild/noarch/*.rpm .; mv rpmbuild/*.src.rpm .;rm -fr rpmbuild; ls *.rpm + --define "_rpmdir $$PWD" -ba dracut.spec && \ + ( cd ..; mv rpmbuild/noarch/*.rpm .; mv rpmbuild/*.src.rpm .;rm -fr rpmbuild; ls *.rpm ) syncheck: @ret=0;for i in dracut-logger modules.d/99base/init modules.d/*/*.sh; do \