#!/bin/sh - # # Reconcile the list of public defines with the man pages and the Java files. d=../.. docs=../../../db.docs [ -f $d/LICENSE ] || { echo 'FAIL: cannot find source distribution directory.' exit 1 } p=$d/dist/pubdef.in exitv=0 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 "$f: $name is missing from $p" exitv=1 fi done cat < /dev/null`; then [ "X$isinc" != "XI" ] && { echo "$name should not appear in $f" exitv=1 } else [ "X$isinc" = "XI" ] && { echo "$name does not appear in $f" exitv=1 } fi done cat < /dev/null`; then : else echo "$f: $name is missing from $p" exitv=1 fi done cat < /dev/null`; then : else echo "$f: $name is missing from $p" exitv=1; fi done sed -n -e 's/^[ ]*\([^ ]*\) = DbConstants\..*/\1/p' < $f | while read name; do if `egrep -w "$name" $p > /dev/null`; then : else echo "$f: $name is missing from $p" exitv=1 fi done cat < /dev/null`; then : else echo "SFI (C type): $name does not appear in $f" exitv=1 fi;; J) if `egrep \ "public final static int[ ]$name;" $f > /dev/null`; then : else echo "SFI (J type): $name does not appear in $f" exitv=1 fi if `egrep \ "$name = DbConstants.$name;" $f > /dev/null`; then : else echo "DbConstants: $name does not appear in $f" exitv=1 fi;; \*) ;; *) echo "Unknown isjava field: $isjava" exit 1;; esac done exit $exitv