head	1.1;
access;
symbols
	RELENG_9:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2014.03.31.15.01.50;	author svnexp;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2014.03.31.15.01.50;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@file fixalgorithms was initially added on branch RELENG_9.
@
text
@@


1.1.2.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263970
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 26
#!/bin/sh
#
# fixciphers - remove unsupported ciphers from man pages.
# Usage: fixpaths /path/to/sed cipher1 [cipher2] <infile >outfile 
#
# Author: Darren Tucker (dtucker at zip com.au).  Placed in the public domain.

die() {
	echo $*
	exit -1
}

SED=$1
shift

for c in $*; do
	subs="$subs -e /.Dq.$c.*$/d"
	subs="$subs -e s/$c,//g"
done

# now remove any entirely empty lines
subs="$subs -e /^$/d"

${SED} $subs

exit 0
@

