X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fautomake.mk;h=b8ee5b3b4a8bb73701c0885aadb5b0f28ec31708;hb=9d9a0a0452a957472b0f3a9c132aea19cfb4e568;hp=4c3c07622e5c490aac578f96ffe63dfed2815e18;hpb=7c9b00732c633ddd35b9d92fb9fa4c4f8e3ce390;p=openvswitch diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index 4c3c0762..b8ee5b3b 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -9,8 +9,6 @@ DISTCLEANFILES += \ vswitchd_ovs_vswitchd_SOURCES = \ vswitchd/bridge.c \ vswitchd/bridge.h \ - vswitchd/proc-net-compat.c \ - vswitchd/proc-net-compat.h \ vswitchd/ovs-vswitchd.c \ vswitchd/system-stats.c \ vswitchd/system-stats.h \ @@ -92,3 +90,17 @@ vswitchd/ovs-vswitchd.conf.db.5: \ $(srcdir)/vswitchd/vswitch.ovsschema \ $(srcdir)/vswitchd/vswitch.xml > $@.tmp mv $@.tmp $@ + +# Version checking for vswitch.ovsschema. +ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp +vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema + @sum=`sed '/cksum/d' $? | cksum`; \ + expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \ + if test "X$$sum" = "X$$expected"; then \ + touch $@; \ + else \ + ln=`sed -n '/"cksum":/=' $?`; \ + echo >&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \ + exit 1; \ + fi +CLEANFILES += vswitchd/vswitch.ovsschema.stamp