]> granicus.if.org Git - graphviz/commitdiff
quit earlier on rpmbuild failures
authorJohn Ellson <ellson@research.att.com>
Mon, 7 Oct 2013 23:57:50 +0000 (19:57 -0400)
committerJohn Ellson <ellson@research.att.com>
Mon, 7 Oct 2013 23:57:50 +0000 (19:57 -0400)
builder.sh

index 8f03ceccc0b2cf910de1f9f151eccada34a98e21..4471a66b09ea43dd9a4f7db589548b6d2f151cf1 100755 (executable)
@@ -74,8 +74,8 @@ tar cf - rtest | gzip >rtest.tar.gz
 
 cp graphviz-$VERSION.tar.gz graphviz-$VERSION.tar.gz.md5 rtest.tar.gz $RPMBUILD/SOURCES/
 
-rpmbuild -ts -D "distroagnostic 1" $RPMBUILD/SOURCES/graphviz-$VERSION.tar.gz >/dev/null
+rpmbuild -ts -D "distroagnostic 1" $RPMBUILD/SOURCES/graphviz-$VERSION.tar.gz || exit 1
 
-rpmbuild --rebuild $RPMBUILD/SRPMS/graphviz-$VERSION-1.src.rpm
+rpmbuild --rebuild $RPMBUILD/SRPMS/graphviz-$VERSION-1.src.rpm || exit 1
 
 (cd $RPMBUILD; createrepo .)