]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - crypto/openssh/fixalgorithms
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / crypto / openssh / fixalgorithms
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
8 die() {
9         echo $*
10         exit -1
11 }
12
13 SED=$1
14 shift
15
16 for c in $*; do
17         subs="$subs -e /.Dq.$c.*$/d"
18         subs="$subs -e s/$c,//g"
19 done
20
21 # now remove any entirely empty lines
22 subs="$subs -e /^$/d"
23
24 ${SED} $subs
25
26 exit 0