[gnome-user-docs] g-h/check_status.sh: Options to list only some pages
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-docs] g-h/check_status.sh: Options to list only some pages
- Date: Tue, 29 Mar 2011 15:46:20 +0000 (UTC)
commit 27f95f19162a5133af45c09e1c4e996f1bd07daa
Author: Shaun McCance <shaunm gnome org>
Date: Tue Mar 29 11:52:34 2011 -0400
g-h/check_status.sh: Options to list only some pages
gnome-help/C/check_status.sh | 90 +++++++++++++++++++++++++----------------
1 files changed, 55 insertions(+), 35 deletions(-)
---
diff --git a/gnome-help/C/check_status.sh b/gnome-help/C/check_status.sh
index 1cd3d16..a8b5b0a 100755
--- a/gnome-help/C/check_status.sh
+++ b/gnome-help/C/check_status.sh
@@ -4,40 +4,60 @@
# (Not done properly, but it's OK for a rough estimate)
# DO NOT TRANSLATE
-echo " "
-echo "== NONE =="
-grep -l "status=\"none" *.page
-echo " "
-echo "== STUB =="
-grep -l "status=\"stub" *.page
-echo " "
-echo "== INCOMPLETE =="
-grep -l "status=\"incomplete" *.page
-echo " "
-echo "== DRAFT =="
-grep -l "status=\"draft" *.page
-echo " "
-echo "== REVIEW =="
-grep -l "status=\"review" *.page
-echo " "
-echo "== CANDIDATE =="
-grep -l "status=\"candidate" *.page
-echo " "
-echo "== FINAL =="
-grep -l "status=\"final" *.page
-echo " "
-echo "== OUTDATED =="
-grep -l "status=\"outdated" *.page
+if [ "x$1" = "x" -o "x$1" = "x--none" ]; then
+ echo " "
+ echo "== NONE =="
+ grep -l "status=\"none" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--stub" ]; then
+ echo " "
+ echo "== STUB =="
+ grep -l "status=\"stub" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--incomplete" ]; then
+ echo " "
+ echo "== INCOMPLETE =="
+ grep -l "status=\"incomplete" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--draft" ]; then
+ echo " "
+ echo "== DRAFT =="
+ grep -l "status=\"draft" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--review" ]; then
+ echo " "
+ echo "== REVIEW =="
+ grep -l "status=\"review" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--candidate" ]; then
+ echo " "
+ echo "== CANDIDATE =="
+ grep -l "status=\"candidate" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--final" ]; then
+ echo " "
+ echo "== FINAL =="
+ grep -l "status=\"final" *.page
+fi
+if [ "x$1" = "x" -o "x$1" = "x--outdated" ]; then
+ echo " "
+ echo "== OUTDATED =="
+ grep -l "status=\"outdated" *.page
+fi
-echo " "
-echo " "
-echo "== SUMMARY =="
-echo "None: " `grep "status=\"none" *.page | wc -l`
-echo "Stub: " `grep "status=\"stub" *.page | wc -l`
-echo "Incomplete: " `grep "status=\"incomplete" *.page | wc -l`
-echo "Draft: " `grep "status=\"draft" *.page | wc -l`
-echo "Review: " `grep "status=\"review" *.page | wc -l`
-echo "Candidate: " `grep "status=\"candidate" *.page | wc -l`
-echo "Final: " `grep "status=\"final" *.page | wc -l`
-echo "Outdated: " `grep "status=\"outdated" *.page | wc -l`
+if [ "x$1" = "x" ]; then
+ echo " "
+fi
+if [ "x$1" = "x" -o "x$1" = "x--summary" ]; then
+ echo " "
+ echo "== SUMMARY =="
+ echo "None: " `grep "status=\"none" *.page | wc -l`
+ echo "Stub: " `grep "status=\"stub" *.page | wc -l`
+ echo "Incomplete: " `grep "status=\"incomplete" *.page | wc -l`
+ echo "Draft: " `grep "status=\"draft" *.page | wc -l`
+ echo "Review: " `grep "status=\"review" *.page | wc -l`
+ echo "Candidate: " `grep "status=\"candidate" *.page | wc -l`
+ echo "Final: " `grep "status=\"final" *.page | wc -l`
+ echo "Outdated: " `grep "status=\"outdated" *.page | wc -l`
+fi
echo " "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]