home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / enxle1f6 / src / findmissing < prev   
Encoding:
Korn shell script  |  1996-08-14  |  514 b   |  20 lines

  1. #!/bin/ksh
  2. #
  3. # findmissing
  4. #
  5. # The purpose of this script is to find unused java source files so that they
  6. # can be quickly removed from a distribution. To use it, compile the portion
  7. # of the source heirarcy you are interested in, then delete the excess. This
  8. # will allow you to remove extra functionality in packages if you want to 
  9. # ship a minimal product for a particular client.
  10. #
  11. ##
  12. for i in $(find . -name *.java -print)
  13. do
  14.     file=../classes/${i%.java}.class
  15.     if test ! -r $file
  16.     then
  17.         print $i 
  18.     fi
  19. done
  20.