summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-14 18:19:04 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-18 22:11:34 +0100
commit75419808cd05d2bcd8941163d112f67f8cc25d89 (patch)
treec247082a0808ace18f71379143ed90fe93fd2498
parentbf52153581bf58e787c4765b5a4c5fafe2c26c9f (diff)
downloadlibguestfs-75419808cd05d2bcd8941163d112f67f8cc25d89.tar.gz
libguestfs-75419808cd05d2bcd8941163d112f67f8cc25d89.tar.xz
libguestfs-75419808cd05d2bcd8941163d112f67f8cc25d89.zip
inspector: Handle write failures when creating example-*.xml.
(cherry picked from commit 0108d7861d4cc9a1f0d87d89080d1be7750e54b5)
-rw-r--r--inspector/Makefile.am16
1 files changed, 12 insertions, 4 deletions
diff --git a/inspector/Makefile.am b/inspector/Makefile.am
index 69b5683e..435ba872 100644
--- a/inspector/Makefile.am
+++ b/inspector/Makefile.am
@@ -100,10 +100,18 @@ endif
# can run them. Instead you can run them by hand.
example-debian.xml:
- ./run-inspector-locally ../images/debian.img > $@
+ rm -f $@ $@-t
+ ./run-inspector-locally ../images/debian.img > $@-t
+ mv $@-t $@
example-fedora.xml:
- ./run-inspector-locally ../images/fedora.img > $@
+ rm -f $@ $@-t
+ ./run-inspector-locally ../images/fedora.img > $@-t
+ mv $@-t $@
example-ubuntu.xml:
- ./run-inspector-locally ../images/ubuntu.img > $@
+ rm -f $@ $@-t
+ ./run-inspector-locally ../images/ubuntu.img > $@-t
+ mv $@-t $@
example-windows.xml:
- ./run-inspector-locally ../images/windows.img | fgrep -v '<uuid>' > $@
+ rm -f $@ $@-t
+ ./run-inspector-locally ../images/windows.img | fgrep -v '<uuid>' > $@-t
+ mv $@-t $@