From: YAMAMOTO Takashi Date: Tue, 24 Dec 2013 01:04:08 +0000 (+0900) Subject: ofproto: Avoid leaving a broken def X-Git-Tag: sliver-openvswitch-2.1.90-1~10^2~79 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bc3dcab90adca9e2f9da5730eebd535c52d848aa;p=sliver-openvswitch.git ofproto: Avoid leaving a broken def On errors, don't leave a broken ipfix-entries.def, which might cause mysterious errors later. (Probably the most common cause is the lack of python xml libraries.) Signed-off-by: YAMAMOTO Takashi Signed-off-by: Ben Pfaff --- diff --git a/ofproto/automake.mk b/ofproto/automake.mk index 068a74234..1308820d5 100644 --- a/ofproto/automake.mk +++ b/ofproto/automake.mk @@ -62,4 +62,5 @@ MAN_FRAGMENTS += ofproto/ofproto-unixctl.man ofproto/ofproto-dpif-unixctl.man EXTRA_DIST += ofproto/ipfix.xml dist_noinst_SCRIPTS = ofproto/ipfix-gen-entities ofproto/ipfix-entities.def: ofproto/ipfix.xml ofproto/ipfix-gen-entities - $(run_python) $(srcdir)/ofproto/ipfix-gen-entities $< > $@ + $(run_python) $(srcdir)/ofproto/ipfix-gen-entities $< > $@.tmp + mv $@.tmp $@