From b6e2e1f8dd771c5d558c3fba0b49c0ac5572f62f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Apr 2011 18:19:04 +0100 Subject: [PATCH] inspector: Handle write failures when creating example-*.xml. (cherry picked from commit 0108d7861d4cc9a1f0d87d89080d1be7750e54b5) --- inspector/Makefile.am | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/inspector/Makefile.am b/inspector/Makefile.am index 7e36611..94a98a1 100644 --- a/inspector/Makefile.am +++ b/inspector/Makefile.am @@ -88,10 +88,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 '' > $@ + rm -f $@ $@-t + ./run-inspector-locally ../images/windows.img | fgrep -v '' > $@-t + mv $@-t $@ -- 1.8.3.1