]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libsec/port/reduce
libsec: implement SPKI fingerprinting for okCertificate()
[plan9front.git] / sys / src / libsec / port / reduce
1 O=$1
2 shift
3 objtype=$1
4 shift
5
6 ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid
7 #
8 #       if empty directory, just return the input files
9 #
10 if (! ~ $status '|') {
11         echo $*
12         rm /tmp/reduce.$pid
13         exit 0
14 }
15 echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' '
16 rm /tmp/reduce.$pid