mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
508 B

  1. #!/bin/bash
  2. # Subversion has really big ".svn" subdirs. This has much better performance
  3. # than the "find ... ! -path '*/.svn*' ! -path '*/CVS*' ..." used earlier
  4. # in various places. Never use this with -depth! Instead pipe the output thru
  5. # "tac" or "sort -r".
  6. dirs=""
  7. while [ "${1##[-(!]*}" ]
  8. do
  9. # the pathnames hopefully don't contain spaces
  10. dirs="$dirs$1 "
  11. shift
  12. done
  13. [ $# -eq 0 ] && set -- -true
  14. find $dirs \( -name .svn -o -name CVS \) -prune -false -o \
  15. ! -name .svn ! -name CVS \( "$@" \)