1#!/bin/sh - 2# 3# $Id: chk.javafiles,v 12.1 2006/09/09 03:05:38 bostic Exp $ 4# 5# Check to make sure we haven't forgotten to add any Java files to the list 6# of source files in the Makefile. 7 8d=../.. 9 10[ -f $d/LICENSE ] || { 11 echo 'FAIL: cannot find source distribution directory.' 12 exit 1 13} 14 15f=$d/dist/Makefile.in 16 17t1=__1 18t2=__2 19 20find $d/java $d/examples_java -name \*.java -print | 21 sed -e 's/^.*\///' | sort -u > $t1 22tr ' \t' '\n' < $f | sed -e '/\.java$/!d' -e 's/^.*\///' | sort -u > $t2 23 24cmp $t1 $t2 > /dev/null || { 25 echo "<<< java source files >>> Makefile" 26 diff $t1 $t2 27 exit 1 28} 29 30exit 0 31