From: Harald Hoyer Date: Fri, 27 Nov 2009 13:57:37 +0000 (+0100) Subject: Makefile: gitrpm: cleanup on failed rpmbuild X-Git-Tag: 003~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd23d778e7dfe06a424cb46dd90e04360b5a402;p=thirdparty%2Fdracut.git Makefile: gitrpm: cleanup on failed rpmbuild --- diff --git a/Makefile b/Makefile index b29c93861..14ad3fdac 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2 cat dracut.spec >> dracut.spec.git mv dracut.spec dracut.spec.bak mv dracut.spec.git dracut.spec - rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec + rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec || : mv dracut.spec.bak dracut.spec rm -fr BUILD BUILDROOT