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.

19 lines
463 B

  1. #!/bin/sh
  2. tmp1=`mktemp`
  3. tmp2=`mktemp`
  4. find -type d -name CVS | while read dirname ; do
  5. echo ${dirname%/*}
  6. awk -F "/" '$1 == "" && $3 !~ /^-/ {
  7. print "'"${dirname%/*}"'/" $2; }' < $dirname/Entries
  8. done | sed 's,./,,' | sort > $tmp1
  9. find | grep -v '/CVS' | grep -v '/\.$' | sed 's,./,,' | sort > $tmp2
  10. diff -u0 $tmp1 $tmp2 | grep '^[-+][A-Za-z]' | \
  11. egrep -xv '\+Documentation/(FAQ|LSM)' | \
  12. sed 's,^-,cvs remove ,; s,^+,cvs add ,'
  13. rm -f $tmp1 $tmp2