diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 19:39:50 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 19:39:50 +0000 |
commit | d9616e5a763d1ab83ebac479e3b2222db5c3f87f (patch) | |
tree | a08c8f6002f7c1660aaa80e0f9cf61cd9d71151c /games/cowsay/files/patch-cowsay | |
parent | - Update to 1.9, announce message: (diff) |
Rename all 10,000 games/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363239
Diffstat (limited to 'games/cowsay/files/patch-cowsay')
-rw-r--r-- | games/cowsay/files/patch-cowsay | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games/cowsay/files/patch-cowsay b/games/cowsay/files/patch-cowsay new file mode 100644 index 000000000000..7bf7019778eb --- /dev/null +++ b/games/cowsay/files/patch-cowsay @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/03/25 20:13:24 jlam Exp $ + +--- cowsay.orig Thu Nov 4 11:29:53 1999 ++++ cowsay Sat Mar 25 12:07:09 2000 +@@ -7,7 +7,7 @@ + ## + + use Text::Tabs qw(expand); +-use Text::Wrap qw(wrap fill $columns); ++use Text::Wrap qw(wrap $columns); + use File::Basename; + use Getopt::Std; + use Cwd; +@@ -180,4 +180,21 @@ + Usage: $progname [-bdgpstwy] [-h] [-e eyes] [-f cowfile] + [-l] [-n] [-T tongue] [-W wrapcolumn] [message] + EOF ++} ++ ++sub fill { ++ my ($ip, $xp, @raw) = @_; ++ my @para; ++ my $pp; ++ ++ for $pp (split(/\n\s+/, join("\n",@raw))) { ++ $pp =~ s/\s+/ /g; ++ my $x = wrap($ip, $xp, $pp); ++ push(@para, $x); ++ } ++ ++ # if paragraph_indent is the same as line_indent, ++ # separate paragraphs with blank lines ++ ++ return join ($ip eq $xp ? "\n\n" : "\n", @para); + } |