7
7
if [ "x$1" = "x" -o "x$1" = "x--none" ]; then
10
grep -l "12\.04.*status=\"none" *.page
10
grep -l "12\.10.*status=\"none" *.page
12
12
if [ "x$1" = "x" -o "x$1" = "x--stub" ]; then
15
grep -l "12\.04.*status=\"stub" *.page
15
grep -l "12\.10.*status=\"stub" *.page
17
17
if [ "x$1" = "x" -o "x$1" = "x--incomplete" ]; then
19
19
echo "== INCOMPLETE =="
20
grep -l "12\.04.*status=\"incomplete" *.page
20
grep -l "12\.10.*status=\"incomplete" *.page
22
22
if [ "x$1" = "x" -o "x$1" = "x--draft" ]; then
25
grep -l "12\.04.*status=\"draft" *.page
25
grep -l "12\.10.*status=\"draft" *.page
27
27
if [ "x$1" = "x" -o "x$1" = "x--review" ]; then
29
29
echo "== REVIEW =="
30
grep -l "12\.04.*status=\"review" *.page
30
grep -l "12\.10.*status=\"review" *.page
32
32
if [ "x$1" = "x" -o "x$1" = "x--candidate" ]; then
34
34
echo "== CANDIDATE =="
35
grep -l "12\.04.*status=\"candidate" *.page
35
grep -l "12\.10.*status=\"candidate" *.page
37
37
if [ "x$1" = "x" -o "x$1" = "x--final" ]; then
40
grep -l "12\.04.*status=\"final" *.page
40
grep -l "12\.10.*status=\"final" *.page
42
42
if [ "x$1" = "x" -o "x$1" = "x--outdated" ]; then
44
44
echo "== OUTDATED =="
45
grep -l "12\.04.*status=\"outdated" *.page
45
grep -l "12\.10.*status=\"outdated" *.page
48
48
if [ "x$1" = "x" ]; then
51
51
if [ "x$1" = "x" -o "x$1" = "x--summary" ]; then
53
53
echo "== SUMMARY =="
54
echo "None: " `grep "12\.04.*status=\"none" *.page | wc -l`
55
echo "Stub: " `grep "12\.04.*status=\"stub" *.page | wc -l`
56
echo "Incomplete: " `grep "12\.04.*status=\"incomplete" *.page | wc -l`
57
echo "Draft: " `grep "12\.04.*status=\"draft" *.page | wc -l`
58
echo "Review: " `grep "12\.04.*status=\"review" *.page | wc -l`
59
echo "Candidate: " `grep "12\.04.*status=\"candidate" *.page | wc -l`
60
echo "Final: " `grep "12\.04.*status=\"final" *.page | wc -l`
61
echo "Outdated: " `grep "12\.04.*status=\"outdated" *.page | wc -l`
54
echo "None: " `grep "12\.10.*status=\"none" *.page | wc -l`
55
echo "Stub: " `grep "12\.10.*status=\"stub" *.page | wc -l`
56
echo "Incomplete: " `grep "12\.10.*status=\"incomplete" *.page | wc -l`
57
echo "Draft: " `grep "12\.10.*status=\"draft" *.page | wc -l`
58
echo "Review: " `grep "12\.10.*status=\"review" *.page | wc -l`
59
echo "Candidate: " `grep "12\.10.*status=\"candidate" *.page | wc -l`
60
echo "Final: " `grep "12\.10.*status=\"final" *.page | wc -l`
61
echo "Outdated: " `grep "12\.10.*status=\"outdated" *.page | wc -l`