aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-10-30 19:27:54 +0000
committerRob Austein <sra@hactrn.net>2006-10-30 19:27:54 +0000
commitd5e86cdf9029e5918bc77f622a03a56277fcfd34 (patch)
treeb14af0a8a7c335a9b92938245f045a4bf5e9df73
parent4213054959bc6496168bd126970979786d7f499f (diff)
awk hack to run ./uri on rcynic unauthenticated directory and dump
the result in tabular form. svn path=/tests/uri/uri-table.awk; revision=460
-rw-r--r--tests/uri/uri-table.awk31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/uri/uri-table.awk b/tests/uri/uri-table.awk
new file mode 100644
index 00000000..ea9fafb3
--- /dev/null
+++ b/tests/uri/uri-table.awk
@@ -0,0 +1,31 @@
+#!/usr/bin/awk -f
+# $Id$
+
+BEGIN {
+ cmd = "find /var/rcynic/data/unauthenticated -type f -name '*.cer' -print0 | xargs -0 ./uri -d";
+ while ((cmd | getline) == 1) {
+ if ($1 == "File") {
+ if (f)
+ print f, u, a, s, c;
+ a = s = c = "-";
+ f = $2;
+ sub("/var/rcynic/data/unauthenticated/","rsync://");
+ u = $2;
+ continue;
+ }
+ if ($1 == "SIA:") {
+ s = $2;
+ continue;
+ }
+ if ($1 == "AIA:") {
+ a = $2;
+ continue;
+ }
+ if ($1 == "CRL:") {
+ c = $2;
+ continue;
+ }
+ }
+ if (f != "-")
+ print f, u, a, s, c;
+}