dpif-netlink: add GENEVE creation support
[cascardo/ovs.git] / build-aux / cksum-schema-check
1 #!/bin/sh
2
3 schema=$1
4 stamp=$2
5
6 cksumcheckpath=`dirname $0`
7 sum=`$cksumcheckpath/calculate-schema-cksum $schema`
8 expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $schema`
9 if test "X$sum" = "X$expected"; then
10     touch $stamp
11 else
12     ln=`sed -n '/"cksum":/=' $schema`
13     echo >&2 "$schema:$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."
14     exit 1
15 fi