]> icculus.org git repositories - divverent/darkplaces.git/blob - check_for_missing_ops.sh
Merge branch 'master' into blub/dp1
[divverent/darkplaces.git] / check_for_missing_ops.sh
1 #! /bin/sh
2 grep -oPr '(?<=case )OP_\w+(?=:)' prvm_edict.c > edictoplist
3 grep -oPr '(?<=case )OP_\w+(?=:)' prvm_execprogram.h > opcodelist
4 for i in `cat opcodelist`; do
5   grep -qP "^$i\$" edictoplist || echo $i missing
6 done
7 rm -f edictoplist
8 rm -f opcodelist