* Added the fanboy filter.
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 24 Oct 2007 22:01:32 +0000 (18:01 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 24 Oct 2007 22:01:32 +0000 (18:01 -0400)
Makefile
debian/changelog
fanboy [new file with mode: 0755]
filters.6

index 9fb3326b31a7fb37ba5175b7f946d40701c81e69..183d7c737730d81b5e428ce355a77f304b176371 100644 (file)
--- 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
 
index b4896d2cc40ad0a87fa893ce83ce9f124fdb8e35..b94728aca91e183cb7786aac28df5ecb29ccaa51 100644 (file)
@@ -1,3 +1,9 @@
+filters (2.43) UNRELEASED; urgency=low
+
+  * Added the fanboy filter.
+
+ -- Joey Hess <joeyh@debian.org>  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 (executable)
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 (<STDIN>) {
+       while(/(($coolstuff)[.?!]*)/ig) {
+               $len+=length($1)+1;
+               if ($len > 70) {
+                       print "\n";
+                       $len=0;
+               }
+               print $1." ";
+       }
+}
+print "\n" if $len;
index 0b6ca9b08014d308e3c35f1ff13907f8ec0e41da..f668e7dd5cbf4eb424b6ed20a0801b1911dc2722 100644 (file)
--- 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
This page took 0.014154 seconds and 4 git commands to generate.