summaryrefslogtreecommitdiff
path: root/fixalgorithms
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-11 11:26:10 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-06-11 11:26:10 +1000
commit6d8bd57448b45b42809da32857d7804444349ee7 (patch)
tree6c693d94198b7df2157202405964151847e50251 /fixalgorithms
parent36187093ea0b2d2240c043417b8949611687e105 (diff)
- (dtucker) [Makefile.in configure.ac fixalgorithms] Remove unsupported
algorithms (Ciphers, MACs and HostKeyAlgorithms) from man pages.
Diffstat (limited to 'fixalgorithms')
-rwxr-xr-xfixalgorithms26
1 files changed, 26 insertions, 0 deletions
diff --git a/fixalgorithms b/fixalgorithms
new file mode 100755
index 000000000..115dce81c
--- /dev/null
+++ b/fixalgorithms
@@ -0,0 +1,26 @@
1#!/bin/sh
2#
3# fixciphers - remove unsupported ciphers from man pages.
4# Usage: fixpaths /path/to/sed cipher1 [cipher2] <infile >outfile
5#
6# Author: Darren Tucker (dtucker at zip com.au). Placed in the public domain.
7
8die() {
9 echo $*
10 exit -1
11}
12
13SED=$1
14shift
15
16for c in $*; do
17 subs="$subs -e /.Dq.$c.*$/d"
18 subs="$subs -e s/$c,//g"
19done
20
21# now remove any entirely empty lines
22subs="$subs -e /^$/d"
23
24${SED} $subs
25
26exit 0