home *** CD-ROM | disk | FTP | other *** search
Korn shell script | 1996-08-14 | 514 b | 20 lines |
- #!/bin/ksh
- #
- # findmissing
- #
- # The purpose of this script is to find unused java source files so that they
- # can be quickly removed from a distribution. To use it, compile the portion
- # of the source heirarcy you are interested in, then delete the excess. This
- # will allow you to remove extra functionality in packages if you want to
- # ship a minimal product for a particular client.
- #
- ##
- for i in $(find . -name *.java -print)
- do
- file=../classes/${i%.java}.class
- if test ! -r $file
- then
- print $i
- fi
- done
-