home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / irix / scripts / rcs / DiffRCS < prev    next >
Encoding:
Text File  |  1994-08-02  |  930 b   |  35 lines

  1. #!/bin/csh -f
  2. #
  3. # $Id: DiffRCS,v 1.1 93/08/20 13:16:31 carlson Exp $
  4. #
  5. # This script will perform an rcsdiff on each file found in the
  6. # current directory (ignoring *~, *.o and *.out files) and just list
  7. # those files that are different or not checked in (don't have a
  8. # respective RCS file).
  9. #
  10. # Revision History:
  11. #    $Log:    DiffRCS,v $
  12. # Revision 1.1  93/08/20  13:16:31  carlson
  13. # Initial revision
  14. # Revision 1.1  1993/05/12  17:53:55  chris
  15. # Initial revision
  16. #
  17. #--------------------------------------------------------------------
  18.  
  19. foreach file ( * )
  20.     if ( -d $file ) continue
  21.     if ( "$file:e" == "o" ) continue
  22.     if ( "$file:e" == "out" ) continue
  23.     set file1 = `basename $file '~'`
  24.     if ( "$file1" != "$file" ) continue
  25.     if ( ! -e RCS/$file,v ) then
  26.     echo "RCS file for $file does not exist."
  27.     else
  28.     rcsdiff $file >& /dev/null
  29.     if ( $status ) then
  30.         echo "$file has been modified."
  31.     endif
  32.     endif
  33. end
  34.