netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / build-aux / cksum-schema-check
1 #!/bin/sh
2
3 schema=$1
4 stamp=$2
5
6 sum=`sed '/cksum/d' $schema | cksum`
7 expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $schema`
8 if test "X$sum" = "X$expected"; then
9     touch $stamp
10 else
11     ln=`sed -n '/"cksum":/=' $schema`
12     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."
13     exit 1
14 fi