summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-12-23 19:26:49 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-12-23 19:26:49 +0000
commit3c9def2db8a414a427fc06171a7c932831720dfb (patch)
tree26158eac72448cde86d5caabac4570986b5bc631
parent9b202acca2f6569c4ad5dcf709ec4c8335695b94 (diff)
makediff: exit on makediff.sh failure
Properly propagate errors from sub-scripts. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/branches/v1.0@461 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rwxr-xr-xmakediffhtml.sh2
-rwxr-xr-xmakediffpdf.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/makediffhtml.sh b/makediffhtml.sh
index 15c4a30..f8f8783 100755
--- a/makediffhtml.sh
+++ b/makediffhtml.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-./makediff.sh virtio-html.tex
+./makediff.sh virtio-html.tex || exit 3
SPECDOC=${SPECDOC:-`cat REVISION`}
SPECDOC="${SPECDOC}-diff"
diff --git a/makediffpdf.sh b/makediffpdf.sh
index c7864df..b3031c4 100755
--- a/makediffpdf.sh
+++ b/makediffpdf.sh
@@ -1,5 +1,5 @@
#make pdf diff using latexpand and latexdiff-fast
-./makediff.sh virtio.tex
+./makediff.sh virtio.tex || exit 3
SPECDOC=${SPECDOC:-`cat REVISION`}
SPECDOC="${SPECDOC}-diff"
rm $SPECDOC.aux $SPECDOC.pdf $SPECDOC.out