From: Joey Hess Date: Wed, 24 Oct 2007 22:01:32 +0000 (-0400) Subject: * Added the fanboy filter. X-Git-Tag: 2.43~10 X-Git-Url: http://git.ieval.ro/?p=filters.git;a=commitdiff_plain;h=5fbd4551e87d19e1a3ce68ffc08f8eb0e0c24004 * Added the fanboy filter. --- diff --git a/Makefile b/Makefile index 9fb3326..183d7c7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ LEX = flex BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \ - censor spammer uniencode pirate kenny scottish + censor spammer uniencode pirate kenny scottish fanboy CFLAGS = -O2 -lfl INSTALL_PROGRAM = install diff --git a/debian/changelog b/debian/changelog index b4896d2..b94728a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +filters (2.43) UNRELEASED; urgency=low + + * Added the fanboy filter. + + -- Joey Hess Wed, 24 Oct 2007 18:00:19 -0400 + filters (2.42) unstable; urgency=low * Moved from subversion to git. diff --git a/fanboy b/fanboy new file mode 100755 index 0000000..7ca7eb4 --- /dev/null +++ b/fanboy @@ -0,0 +1,20 @@ +#!/usr/bin/perl + +if (! @ARGV) { + @ARGV=qw(linus git linux rebase merge cherry-pick branch); +} + +my $coolstuff=join("|", map { "\Q$_\E" } @ARGV); + +my $len=0; +while () { + while(/(($coolstuff)[.?!]*)/ig) { + $len+=length($1)+1; + if ($len > 70) { + print "\n"; + $len=0; + } + print $1." "; + } +} +print "\n" if $len; diff --git a/filters.6 b/filters.6 index 0b6ca9b..f668e7d 100644 --- a/filters.6 +++ b/filters.6 @@ -1,6 +1,6 @@ .TH FILTERS 6 .SH NAME -ken, b1ff, censor, chef, cockney, eleet, fudd, jethro, jibberish, jive, kenny, kraut, ky00te, nethack, newspeak, nyc, pirate, rasterman, scottish, spammer, studly, uniencode, upside\-down \- assorted text filters +ken, b1ff, censor, chef, cockney, eleet, fanboy, fudd, jethro, jibberish, jive, kenny, kraut, ky00te, nethack, newspeak, nyc, pirate, rasterman, scottish, spammer, studly, uniencode, upside\-down \- assorted text filters .SH SYNOPSIS $SHELL | chef @@ -24,6 +24,10 @@ Cockney English convert English on stdin to Mock Swedish on stdout .IP eleet K3wl hacker slang +.IP fanboy +Speak like a fanboy. By default, it will speak like a fan of git/Linus/linux +development. To change this, pass as parameters the words that it should grep +for. .IP fudd Elmer Fudd .IP jethro