[or-cvs] [https-everywhere/master 3/3] add check for new target tag

schoen at torproject.org schoen at torproject.org
Thu Nov 4 00:01:26 UTC 2010


Author: Seth Schoen <schoen at eff.org>
Date: Wed, 3 Nov 2010 16:59:52 -0700
Subject: add check for new target tag
Commit: a2904f66fd0092d832c4b9f7895f4fb553f6df35

---
 pending-rules/trivial-validate |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate
index bf60cb7..e2e9ec5 100755
--- a/pending-rules/trivial-validate
+++ b/pending-rules/trivial-validate
@@ -44,3 +44,15 @@ do
   fi
 done
 $none && echo "(None.)"
+
+echo "--- Rules that lack at least one valid <target> tag:"
+none=true
+for i in *.xml
+do
+  if ! egrep '<target .*host=".*/>' "$i" >/dev/null
+  then
+    echo $i
+    none=false
+  fi
+done
+$none && echo "(None.)"
-- 
1.7.1



More information about the tor-commits mailing list