]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: gitrpm: cleanup on failed rpmbuild
authorHarald Hoyer <harald@redhat.com>
Fri, 27 Nov 2009 13:57:37 +0000 (14:57 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 27 Nov 2009 13:57:37 +0000 (14:57 +0100)
Makefile

index b29c9386146941f04289e4a25e90267462c75740..14ad3fdacebd1fa71f20bcaa4cac52f6c99a5c96 100644 (file)
--- 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