X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=vswitchd%2Fautomake.mk;h=8d7f3ea4d28a6e2e9d0bb0e1663cdd68e7a1b5ad;hb=ca7e7bee86b4ee821d61b58bf15c89a9d8a3cb30;hp=81f201a4538a25b17f785dcba8cd214c7521c109;hpb=daaeeec0bd4348b1f6ac5ca5a302e57bd11cca01;p=cascardo%2Fovs.git diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index 81f201a45..8d7f3ea4d 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -57,15 +57,7 @@ vswitchd/ovs-vswitchd.conf.db.5: \ # 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: The checksum \"$$sum\" was calculated from the schema file and does not match cksum field in the schema file - you should probably update the version number and the checksum in the schema file with the value listed here."; \ - exit 1; \ - fi + $(srcdir)/build-aux/cksum-schema-check $? $@ CLEANFILES += vswitchd/vswitch.ovsschema.stamp # Clean up generated files from older OVS versions. (This is important so that