blob: a3a518d4af1f47aceadcac79975b3e68f50144da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
|