#!/bin/sh - # # Reconcile the list of public defines with the man pages and the Java files. d=../.. docs=$d/docs_src [ -f $d/LICENSE ] || { echo 'FAIL: cannot find source distribution directory.' exit 1 } p=$d/dist/pubdef.in exitv=0 # remove m4 doc tests, m4 has been removed for 4.8 # TODO: add test for csharp const #cat < /dev/null`; then # : # else # echo "$f: $name is missing from $p" # exitv=1 # fi #done #cat < /dev/null`; then # [ "X$isdoc" != "XD" ] && { # echo "$name should not appear in $f" # exitv=1 # } # else # [ "X$isdoc" = "XD" ] && { # echo "$name does not appear in $f" # exitv=1; # } # fi #done cat < /dev/null`; then : else echo "db.in/api_flags.in: $name is missing from $p" exitv=1 fi done cat < /dev/null`; then [ "X$isinc" != "XI" ] && { echo "$name should not appear in db.in/api_flags.in" exitv=1 } else [ "X$isinc" = "XI" ] && { echo "$name does not appear in db.in/api_flags.in" exitv=1 } fi done cat < /dev/null`; then : else echo "$f: $name is missing from $p" exitv=1 fi done cat < $t sed '/^#/d' $p | while read name isdoc isinc isjava iscsharp; do if `egrep -w "$name" $t > /dev/null`; then [ "X$isjava" != "XJ" ] && { echo "$name should not appear in the Java API" exitv=1 } else [ "X$isjava" = "XJ" ] && { echo "$name does not appear in the Java API" exitv=1 } fi done cat < /dev/null`; then [ "X$isjava" != "XN" ] && [ "X$isjava" != "XJ" ] && { echo "$name should not appear in the Java native layer" exitv=1 } else [ "X$isjava" = "XN" ] && { echo "$name does not appear in the Java native layer" exitv=1 } fi done exit $exitv