summaryrefslogtreecommitdiffstats
path: root/inspector
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-14 18:20:30 +0100
commit0108d7861d4cc9a1f0d87d89080d1be7750e54b5 (patch)
tree86558e036261405bb0236d575dc9df5b436d8bc1 /inspector
parent67493bfca44d436143d825b155bf2bc38990ea82 (diff)
downloadlibguestfs-0108d7861d4cc9a1f0d87d89080d1be7750e54b5.tar.gz
libguestfs-0108d7861d4cc9a1f0d87d89080d1be7750e54b5.tar.xz
libguestfs-0108d7861d4cc9a1f0d87d89080d1be7750e54b5.zip
inspector: Handle write failures when creating example-*.xml.
Diffstat (limited to 'inspector')
-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 $@