diff options
Diffstat (limited to 'maintainer-scripts/local-summary')
-rwxr-xr-x | maintainer-scripts/local-summary | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/maintainer-scripts/local-summary b/maintainer-scripts/local-summary new file mode 100755 index 00000000000..a3a518d4af1 --- /dev/null +++ b/maintainer-scripts/local-summary @@ -0,0 +1,60 @@ +#!/bin/sh +# APPLE LOCAL file maintenance + +root="." +uniq_options="" +show_file=no + +while : +do + case $# in + 0) + break + ;; + esac + option=$1 + shift + case $option in + -c) + uniq_options="-c" + ;; + -f) + show_file=yes + ;; + *) + root=$option + ;; + esac +done + +if [ $show_file == no ]; then + grep 'APPLE[^_]LOCAL' -r $root | sed -e 's/.*APPLE/APPLE/' >/tmp/rawlocals +else + grep -n 'APPLE[^_]LOCAL' -r $root | sed -e 's/\(.*:[0-9]*:\).*APPLE/\1 APPLE/' >/tmp/rawlocals +fi + +sed < /tmp/rawlocals \ + -e 's/LOCAL[: ] /LOCAL /' \ + -e 's/LOCAL *begin/LOCAL/' \ + -e '/LOCAL *end/d' \ + -e '/APPLE LOCAL"/d' \ + -e 's/LOCAL *file/LOCAL/' \ + -e 's/APPLE[ ]LOCAL[ ]*//' \ + -e 's,\*/.*$,,g' \ + -e 's/ dpatel//' \ + -e 's/ ff//' \ + -e 's/ ilr//' \ + -e 's/ matt//' \ + -e 's/ --matt//' \ + -e 's/ sts//' \ + -e 's/ turly//' \ + -e 's/ tur//' \ + -e 's/ zll//' \ + -e 's/ 200[12]-..-..//' \ + -e 's/ 200[12]-.-..//' \ + -e 's/ 200[12][0-9][0-9][0-9][0-9]//' \ + -e 's,[ */"\\]*$,,g' | \ + sort | uniq $uniq_options + + + |