cleansrctree 678 B

1234567891011121314151617181920212223242526272829
  1. #! /bin/sh
  2. # This script cleans a source tree of unwanted ,RCSnew* files
  3. # created when you abort RCS.
  4. # It also makes all the ,v files have group bin and owner bin --marca
  5. # marca 2/7/90
  6. USAGE="USAGE: cleansrctree <sourcedir>"
  7. if [ $# -lt 1 ];then
  8. echo ""
  9. echo "$USAGE"
  10. exit 1
  11. fi
  12. cd /$1
  13. #change owner and group to bin
  14. echo "FILES NOT OWNER BIN"
  15. find . -name "*,v" ! -user bin -print -exec chown bin {} \;
  16. find . -name "*,v" ! -group bin -print -exec chgrp bin {} \;
  17. echo "FILES not 444"
  18. find . -name "*,v" -perm 0440 -exec chmod +r {} \; -print
  19. echo ""
  20. echo "FILES NOT GROUP BIN"
  21. echo ""
  22. echo ",RCS FILES"
  23. # eliminate , files
  24. find . -name ",*" -print -exec rm -f {} \;