[or-cvs] [https-everywhere/master 1/4] more patterns for things that could commonly be wrong

schoen at torproject.org schoen at torproject.org
Sun Oct 31 07:02:35 UTC 2010


Author: Seth Schoen <schoen at eff.org>
Date: Sat, 30 Oct 2010 23:20:08 -0700
Subject: more patterns for things that could commonly be wrong
Commit: cd5a0424a8efbb47e7c4d5ef1fc0c70bd89d6c70

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

diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate
index f540d71..198d769 100755
--- a/pending-rules/trivial-validate
+++ b/pending-rules/trivial-validate
@@ -8,8 +8,11 @@ echo
 echo "-- Rules with unescaped dots:"
 grep from= *.xml | cut -d\" -f2 | grep '[^\]\.[^*]' || echo "(None.)"
 echo
-echo "-- Rules not containing trailing slash:"
+echo "-- Rules not containing trailing slash in from pattern:"
 grep from= *.xml | cut -d\" -f2 | grep -v '//.*/' || echo "(None.)"
 echo
+echo "-- Rules not containing trailing slash in to pattern:"
+grep 'to="' *xml | sed 's/^.*to="//' | sed 's/\".*$//' | grep -v '//.*/'
+echo
 echo "-- Rules with missing closing slash in rule XML tag:"
 grep to= *xml | grep '[^/]>' || echo "(None.)"
-- 
1.7.1




More information about the tor-commits mailing list