blob: d8627f6781e3587a0365b8bab2750dc70bb732d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/usr/bin/awk -f
# $Id$
#
# Reformat uri.c's output in a way that's more useful
# for some kinds of scripting. Perhaps this functionality should be
# part of uri.c itself, but for now this script will do.
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;
}
|