diff options
author | Colin Watson <cjwatson@debian.org> | 2013-09-14 15:43:03 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-09-14 15:43:03 +0100 |
commit | 8faf8c84430cf3c19705b1d9f8889d256e7fd1fd (patch) | |
tree | e6cb74192adb00fda5e4d1457547851d7e0d86af /fixalgorithms | |
parent | 328b60656f29db6306994d7498dede386ec2d1c3 (diff) | |
parent | c41345ad7ee5a22689e2c009595e85fa27b4b39a (diff) |
merge 6.3p1
Diffstat (limited to 'fixalgorithms')
-rwxr-xr-x | fixalgorithms | 26 |
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 | |||
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 | ||