Description: rename the program from ack to ack-grep in the POD documentation
Forwarded: not-needed
Author: Ryan Niebur <ryan@debian.org>

Index: ack-grep/ack-base
===================================================================
--- ack-grep.orig/ack-base	2012-06-03 22:39:44.000000000 -0700
+++ ack-grep/ack-base	2012-06-03 22:45:42.000000000 -0700
@@ -9,10 +9,11 @@
 # These are all our globals.
 
 use App::Ack ();
+$App::Ack::debian_internal_name = App::Ack::_my_program();
 
 MAIN: {
     if ( $App::Ack::VERSION ne $main::VERSION ) {
-        App::Ack::die( "Program/library version mismatch\n\t$0 is $main::VERSION\n\t$INC{'App/Ack.pm'} is $App::Ack::VERSION" );
+        App::Ack::die( "Program/library version mismatch\n\t$App::Ack::debian_internal_name is $main::VERSION\n\t$INC{'App/Ack.pm'} is $App::Ack::VERSION" );
     }
 
     # Do preliminary arg checking;
@@ -112,39 +113,39 @@
 
 =head1 NAME
 
-ack - grep-like text finder
+ack-grep - grep-like text finder
 
 =head1 SYNOPSIS
 
-    ack [options] PATTERN [FILE...]
-    ack -f [options] [DIRECTORY...]
+    ack-grep [options] PATTERN [FILE...]
+    ack-grep -f [options] [DIRECTORY...]
 
 =head1 DESCRIPTION
 
-Ack is designed as a replacement for 99% of the uses of F<grep>.
+Ack-Grep is designed as a replacement for 99% of the uses of F<grep>.
 
-Ack searches the named input FILEs (or standard input if no files are
+Ack-Grep searches the named input FILEs (or standard input if no files are
 named, or the file name - is given) for lines containing a match to the
-given PATTERN.  By default, ack prints the matching lines.
+given PATTERN.  By default, ack-grep prints the matching lines.
 
-Ack can also list files that would be searched, without actually searching
-them, to let you take advantage of ack's file-type filtering capabilities.
+Ack-Grep can also list files that would be searched, without actually searching
+them, to let you take advantage of ack-grep's file-type filtering capabilities.
 
 =head1 FILE SELECTION
 
-I<ack> is intelligent about the files it searches.  It knows about
+I<ack-grep> is intelligent about the files it searches.  It knows about
 certain file types, based on both the extension on the file and,
 in some cases, the contents of the file.  These selections can be
 made with the B<--type> option.
 
-With no file selections, I<ack> only searches files of types that
-it recognizes.  If you have a file called F<foo.wango>, and I<ack>
-doesn't know what a .wango file is, I<ack> won't search it.
+With no file selections, I<ack-grep> only searches files of types that
+it recognizes.  If you have a file called F<foo.wango>, and I<ack-grep>
+doesn't know what a .wango file is, I<ack-grep> won't search it.
 
-The B<-a> option tells I<ack> to select all files, regardless of
+The B<-a> option tells I<ack-grep> to select all files, regardless of
 type.
 
-Some files will never be selected by I<ack>, even with B<-a>,
+Some files will never be selected by I<ack-grep>, even with B<-a>,
 including:
 
 =over 4
@@ -155,13 +156,13 @@
 
 =back
 
-However, I<ack> always searches the files given on the command line,
+However, I<ack-grep> always searches the files given on the command line,
 no matter what type. Furthermore, by specifying the B<-u> option all
 files will be searched.
 
 =head1 DIRECTORY SELECTION
 
-I<ack> descends through the directory tree of the starting directories
+I<ack-grep> descends through the directory tree of the starting directories
 specified.  However, it will ignore the shadow directories used by
 many version control systems, and the build directories used by the
 Perl MakeMaker system.  You may add or remove a directory from this
@@ -169,11 +170,11 @@
 to add/remove multiple directories from the ignore list.
 
 For a complete list of directories that do not get searched, run
-F<ack --help>.
+F<ack-grep --help>.
 
 =head1 WHEN TO USE GREP
 
-I<ack> trumps I<grep> as an everyday tool 99% of the time, but don't
+I<ack-grep> trumps I<grep> as an everyday tool 99% of the time, but don't
 throw I<grep> away, because there are times you'll still need it.
 
 E.g., searching through huge files looking for regexes that can be
@@ -210,7 +211,7 @@
 number of lines for each file that has lines matching.  Without
 B<-l>, some line counts may be zeroes.
 
-If combined with B<-h> (B<--no-filename>) ack outputs only one total count.
+If combined with B<-h> (B<--no-filename>) ack-grep outputs only one total count.
 
 =item B<--color>, B<--nocolor>
 
@@ -241,13 +242,13 @@
 =item B<--env>, B<--noenv>
 
 B<--noenv> disables all environment processing. No F<.ackrc> is read
-and all environment variables are ignored. By default, F<ack> considers
+and all environment variables are ignored. By default, F<ack-grep> considers
 F<.ackrc> and settings in the environment.
 
 =item B<--flush>
 
 B<--flush> flushes output immediately.  This is off by default
-unless ack is running interactively (when output goes to a pipe
+unless ack-grep is running interactively (when output goes to a pipe
 or file).
 
 =item B<-f>
@@ -316,8 +317,8 @@
 
 The I<DIRNAME> must always be a simple directory name. Nested directories like
 F<foo/bar> are NOT supported. You would need to specify B<--ignore-dir=foo> and
-then no files from any foo directory are taken into account by ack unless given
-explicitly on the command line.
+then no files from any foo directory are taken into account by ack-grep unless
+given explicitly on the command line.
 
 =item B<--line=I<NUM>>
 
@@ -342,8 +343,8 @@
 same set of files.
 
     # search for foo and bar in given files
-    ack file1 t/file* --match foo
-    ack file1 t/file* --match bar
+    ack-grep file1 t/file* --match foo
+    ack-grep file1 t/file* --match bar
 
 =item B<-m=I<NUM>>, B<--max-count=I<NUM>>
 
@@ -369,7 +370,7 @@
 
 =item B<--pager=I<program>>
 
-Direct ack's output through I<program>.  This can also be specified
+Direct ack-grep's output through I<program>.  This can also be specified
 via the C<ACK_PAGER> and C<ACK_PAGER_COLOR> environment variables.
 
 Using --pager does not suppress grouping and coloring like piping
@@ -382,7 +383,7 @@
 still seeing the entire file, as in:
 
     # Watch a log file, and highlight a certain IP address
-    $ tail -f ~/access.log | ack --passthru 123.45.67.89
+    $ tail -f ~/access.log | ack-grep --passthru 123.45.67.89
 
 =item B<--print0>
 
@@ -391,7 +392,7 @@
 helpful when dealing with filenames that contain whitespace, e.g.
 
     # remove all files of type html
-    ack -f --html --print0 | xargs -0 rm -f
+    ack-grep -f --html --print0 | xargs -0 rm -f
 
 =item B<-Q>, B<--literal>
 
@@ -419,11 +420,11 @@
 =item B<--sort-files>
 
 Sorts the found files lexically.  Use this if you want your file
-listings to be deterministic between runs of I<ack>.
+listings to be deterministic between runs of I<ack-grep>.
 
 =item B<--show-types>
 
-Outputs the filetypes that ack associates with each file.
+Outputs the filetypes that ack-grep associates with each file.
 
 Works with B<-f> and B<-g> options.
 
@@ -446,7 +447,7 @@
 
 Type specifications can be repeated and are ORed together.
 
-See I<ack --help=types> for a list of valid types.
+See I<ack-grep --help=types> for a list of valid types.
 
 =item B<--type-add I<TYPE>=I<.EXTENSION>[,I<.EXT2>[,...]]>
 
@@ -514,7 +515,7 @@
 as they are not interpreted by the shell. Basically, each I<line>
 in the F<.ackrc> file is interpreted as one element of C<@ARGV>.
 
-F<ack> looks in your home directory for the F<.ackrc>.  You can
+F<ack-grep> looks in your home directory for the F<.ackrc>.  You can
 specify another location with the F<ACKRC> variable, below.
 
 If B<--noenv> is specified on the command line, the F<.ackrc> file
@@ -522,27 +523,27 @@
 
 =head1 Defining your own types
 
-ack allows you to define your own types in addition to the predefined
+ack-grep allows you to define your own types in addition to the predefined
 types. This is done with command line options that are best put into
 an F<.ackrc> file - then you do not have to define your types over and
 over again. In the following examples the options will always be shown
 on one command line so that they can be easily copy & pasted.
 
-I<ack --perl foo> searches for foo in all perl files. I<ack --help=types>
+I<ack-grep --perl foo> searches for foo in all perl files. I<ack-grep --help=types>
 tells you, that perl files are files ending
 in .pl, .pm, .pod or .t. So what if you would like to include .xs
-files as well when searching for --perl files? I<ack --type-add perl=.xs --perl foo>
+files as well when searching for --perl files? I<ack-grep --type-add perl=.xs --perl foo>
 does this for you. B<--type-add> appends
 additional extensions to an existing type.
 
 If you want to define a new type, or completely redefine an existing
-type, then use B<--type-set>. I<ack --type-set
+type, then use B<--type-set>. I<ack-grep --type-set
 eiffel=.e,.eiffel> defines the type I<eiffel> to include files with
 the extensions .e or .eiffel. So to search for all eiffel files
-containing the word Bertrand use I<ack --type-set eiffel=.e,.eiffel --eiffel Bertrand>.
+containing the word Bertrand use I<ack-grep --type-set eiffel=.e,.eiffel --eiffel Bertrand>.
 As usual, you can also write B<--type=eiffel>
 instead of B<--eiffel>. Negation also works, so B<--noeiffel> excludes
-all eiffel files from a search. Redefining also works: I<ack --type-set cc=.c,.h>
+all eiffel files from a search. Redefining also works: I<ack-grep --type-set cc=.c,.h>
 and I<.xs> files no longer belong to the type I<cc>.
 
 When defining your own types in the F<.ackrc> file you have to use
@@ -561,7 +562,7 @@
 
 
 In order to see all currently defined types, use I<--help types>, e.g.
-I<ack --type-set backup=.bak --type-add perl=.perl --help types>
+I<ack-grep --type-set backup=.bak --type-add perl=.perl --help types>
 
 Restrictions:
 
@@ -578,7 +579,7 @@
 'shell' and 'xml' cannot be redefined by I<--type-set>, it is always
 active. However, the shebang line is only examined for files where the
 extension is not recognised. Therefore it is possible to say
-I<ack --type-set perl=.perl --type-set foo=.pl,.pm,.pod,.t --perl --nofoo> and
+I<ack-grep --type-set perl=.perl --type-set foo=.pl,.pm,.pod,.t --perl --nofoo> and
 only find your shiny new I<.perl> files (and all files with unrecognized extension
 and perl on the shebang line).
 
@@ -586,7 +587,7 @@
 
 =head1 ENVIRONMENT VARIABLES
 
-For commonly-used ack options, environment variables can make life much easier.
+For commonly-used ack-grep options, environment variables can make life much easier.
 These variables are ignored if B<--noenv> is specified on the command line.
 
 =over 4
@@ -594,7 +595,7 @@
 =item ACKRC
 
 Specifies the location of the F<.ackrc> file.  If this file doesn't
-exist, F<ack> looks in the default location.
+exist, F<ack-grep> looks in the default location.
 
 =item ACK_OPTIONS
 
@@ -637,11 +638,11 @@
 =item ACK_PAGER
 
 Specifies a pager program, such as C<more>, C<less> or C<most>, to which
-ack will send its output.
+ack-grep will send its output.
 
 Using C<ACK_PAGER> does not suppress grouping and coloring like
 piping output on the command-line does, except that on Windows
-ack will assume that C<ACK_PAGER> does not support color.
+ack-grep will assume that C<ACK_PAGER> does not support color.
 
 C<ACK_PAGER_COLOR> overrides C<ACK_PAGER> if both are specified.
 
@@ -659,13 +660,13 @@
 
 =head2 Vim integration
 
-F<ack> integrates easily with the Vim text editor. Set this in your
-F<.vimrc> to use F<ack> instead of F<grep>:
+F<ack-grep> integrates easily with the Vim text editor. Set this in your
+F<.vimrc> to use F<ack-grep> instead of F<grep>:
 
-    set grepprg=ack\ -a
+    set grepprg=ack-grep\ -a
 
 That examples uses C<-a> to search through all files, but you may
-use other default flags. Now you can search with F<ack> and easily
+use other default flags. Now you can search with F<ack-grep> and easily
 step through the results in Vim:
 
   :grep Dumper perllib
@@ -683,13 +684,13 @@
 Pedro Melo is a TextMate user who writes "I spend my day mostly
 inside TextMate, and the built-in find-in-project sucks with large
 projects.  So I hacked a TextMate command that was using find +
-grep to use ack.  The result is the Search in Project with ack, and
+grep to use ack-grep.  The result is the Search in Project with ack-grep, and
 you can find it here:
 L<http://www.simplicidade.org/notes/archives/2008/03/search_in_proje.html>"
 
 =head2 Shell and Return Code
 
-For greater compatibility with I<grep>, I<ack> in normal use returns
+For greater compatibility with I<grep>, I<ack-grep> in normal use returns
 shell return or exit code of 0 only if something is found and 1 if
 no match is found.
 
@@ -702,9 +703,9 @@
 
 =cut
 
-=head1 DEBUGGING ACK PROBLEMS
+=head1 DEBUGGING ACK-GREP PROBLEMS
 
-If ack gives you output you're not expecting, start with a few simple steps.
+If ack-grep gives you output you're not expecting, start with a few simple steps.
 
 =head2 Use B<--noenv>
 
@@ -715,8 +716,8 @@
 =head2 Use B<-f> to see what files you're scanning
 
 The reason I created B<-f> in the first place was as a debugging
-tool.  If ack is not finding matches you think it should find, run
-F<ack -f> to see what files are being checked.
+tool.  If ack-grep is not finding matches you think it should find, run
+F<ack-grep -f> to see what files are being checked.
 
 =head1 TIPS
 
@@ -729,16 +730,16 @@
 
 =head2 Use F<-f> for working with big codesets
 
-Ack does more than search files.  C<ack -f --perl> will create a
+Ack-Grep does more than search files.  C<ack-grep -f --perl> will create a
 list of all the Perl files in a tree, ideal for sending into F<xargs>.
 For example:
 
     # Change all "this" to "that" in all Perl files in a tree.
-    ack -f --perl | xargs perl -p -i -e's/this/that/g'
+    ack-grep -f --perl | xargs perl -p -i -e's/this/that/g'
 
 or if you prefer:
 
-    perl -p -i -e's/this/thatg/' $(ack -f --perl)
+    perl -p -i -e's/this/thatg/' $(ack-grep -f --perl)
 
 =head2 Use F<-Q> when in doubt about metacharacters
 
@@ -747,15 +748,15 @@
 the -Q to avoid false positives without all the backslashing.  See
 the following example for more...
 
-=head2 Use ack to watch log files
+=head2 Use ack-grep to watch log files
 
 Here's one I used the other day to find trouble spots for a website
 visitor.  The user had a problem loading F<troublesome.gif>, so I
-took the access log and scanned it with ack twice.
+took the access log and scanned it with ack-grep twice.
 
-    ack -Q aa.bb.cc.dd /path/to/access.log | ack -Q -B5 troublesome.gif
+    ack-grep -Q aa.bb.cc.dd /path/to/access.log | ack-grep -Q -B5 troublesome.gif
 
-The first ack finds only the lines in the Apache log for the given
+The first ack-grep finds only the lines in the Apache log for the given
 IP.  The second finds the match on my troublesome GIF, and shows
 the previous five lines from the log in each case.
 
@@ -766,46 +767,46 @@
 
 =head1 FAQ
 
-=head2 Why isn't ack finding a match in (some file)?
+=head2 Why isn't ack-grep finding a match in (some file)?
 
-Probably because it's of a type that ack doesn't recognize.  ack's
-searching behavior is driven by filetype.  B<If ack doesn't know
-what kind of file it is, ack ignores the file.>
+Probably because it's of a type that ack-grep doesn't recognize.
+ack-grep's searching behavior is driven by filetype.  B<If ack-grep
+doesn't know what kind of file it is, ack-grep ignores the file.>
 
-Use the C<-f> switch to see a list of files that ack will search
+Use the C<-f> switch to see a list of files that ack-grep will search
 for you.
 
-If you want ack to search files that it doesn't recognize, use the
-C<-a> switch.
+If you want ack-grep to search files that it doesn't recognize, use
+the C<-a> switch.
 
-If you want ack to search every file, even ones that it always
+If you want ack-grep to search every file, even ones that it always
 ignores like coredumps and backup files, use the C<-u> switch.
 
-=head2 Why does ack ignore unknown files by default?
+=head2 Why does ack-grep ignore unknown files by default?
 
-ack is designed by a programmer, for programmers, for searching
+ack-grep is designed by a programmer, for programmers, for searching
 large trees of code.  Most codebases have a lot files in them which
 aren't source files (like compiled object files, source control
 metadata, etc), and grep wastes a lot of time searching through all
 of those as well and returning matches from those files.
 
-That's why ack's behavior of not searching things it doesn't recognize
-is one of its greatest strengths: the speed you get from only
-searching the things that you want to be looking at.
+That's why ack-grep's behavior of not searching things it doesn't
+recognize is one of its greatest strengths: the speed you get from
+only searching the things that you want to be looking at.
 
-=head2 Wouldn't it be great if F<ack> did search & replace?
+=head2 Wouldn't it be great if F<ack-grep> did search & replace?
 
-No, ack will always be read-only.  Perl has a perfectly good way
+No, ack-grep will always be read-only.  Perl has a perfectly good way
 to do search & replace in files, using the C<-i>, C<-p> and C<-n>
 switches.
 
-You can certainly use ack to select your files to update.  For
+You can certainly use ack-grep to select your files to update.  For
 example, to change all "foo" to "bar" in all PHP files, you can do
 this from the Unix shell:
 
-    $ perl -i -p -e's/foo/bar/g' $(ack -f --php)
+    $ perl -i -p -e's/foo/bar/g' $(ack-grep -f --php)
 
-=head2 Can you make ack recognize F<.xyz> files?
+=head2 Can you make ack-grep recognize F<.xyz> files?
 
 That's an enhancement.  Please see the section in the manual about
 enhancements.
@@ -814,7 +815,7 @@
 
 Yes, I know.
 
-=head2 Why is it called ack if it's called ack-grep?
+=head2 Why is it called ack-grep if it's called ack?
 
 The name of the program is "ack".  Some packagers have called it
 "ack-grep" when creating packages because there's already a package
@@ -835,7 +836,7 @@
 
 =head2 Can I do multi-line regexes?
 
-No, ack does not support regexes that match multiple lines.  Doing
+No, ack-grep does not support regexes that match multiple lines.  Doing
 so would require reading in the entire file at a time.
 
 If you want to see lines near your match, use the C<--A>, C<--B>
@@ -855,9 +856,9 @@
 All enhancement requests MUST first be posted to the ack-users
 mailing list at L<http://groups.google.com/group/ack-users>.  I
 will not consider a request without it first getting seen by other
-ack users.  This includes requests for new filetypes.
+ack-grep users.  This includes requests for new filetypes.
 
-There is a list of enhancements I want to make to F<ack> in the ack
+There is a list of enhancements I want to make to F<ack-grep> in the ack
 issues list at Github: L<http://github.com/petdance/ack/issues>
 
 Patches are always welcome, but patches with tests get the most
@@ -865,7 +866,7 @@
 
 =head1 SUPPORT
 
-Support for and information about F<ack> can be found at:
+Support for and information about F<ack-grep> can be found at:
 
 =over 4
 
@@ -899,7 +900,7 @@
 
 How appropriate to have I<ack>nowledgements!
 
-Thanks to everyone who has contributed to ack in any way, including
+Thanks to everyone who has contributed to ack-grep in any way, including
 Matthew Wild,
 Scott Kyle,
 Nick Hooey,
Index: ack-grep/Ack.pm
===================================================================
--- ack-grep.orig/Ack.pm	2012-06-03 22:39:44.000000000 -0700
+++ ack-grep/Ack.pm	2012-06-03 22:45:21.000000000 -0700
@@ -19,9 +19,11 @@
 
 our $VERSION;
 our $COPYRIGHT;
+our $debian_internal_name;
 BEGIN {
     $VERSION = '1.96';
     $COPYRIGHT = 'Copyright 2005-2011 Andy Lester.';
+    $debian_internal_name = 'ack-grep';
 }
 
 our $fh;
@@ -293,7 +295,7 @@
     my $parser = Getopt::Long::Parser->new();
     $parser->configure( 'bundling', 'no_ignore_case', );
     $parser->getoptions( %{$getopt_specs} ) or
-        App::Ack::die( 'See ack --help, ack --help-types or ack --man for options.' );
+        App::Ack::die( "See $debian_internal_name --help, $debian_internal_name --help-types or $debian_internal_name --man for options." );
 
     my $to_screen = not output_to_pipe();
     my %defaults = (
@@ -389,7 +391,7 @@
     $parser->getoptions(
         'type-set=s' => sub { shift; push @typedef, ['c', shift] },
         'type-add=s' => sub { shift; push @typedef, ['a', shift] },
-    ) or App::Ack::die( 'See ack --help or ack --man for options.' );
+    ) or App::Ack::die( "See $debian_internal_name --help or $debian_internal_name --man for options." );
 
     for my $td (@typedef) {
         my ($type, $ext) = split /=/, $td->[1];
@@ -702,18 +704,18 @@
     my $ignore_dirs = _listify( sort { _key($a) cmp _key($b) } keys %ignore_dirs );
 
     App::Ack::print( <<"END_OF_HELP" );
-Usage: ack [OPTION]... PATTERN [FILE]
+Usage: $debian_internal_name [OPTION]... PATTERN [FILE]
 
 Search for PATTERN in each source file in the tree from cwd on down.
 If [FILES] is specified, then only those files/directories are checked.
-ack may also search STDIN, but only if no FILE are specified, or if
+$debian_internal_name may also search STDIN, but only if no FILE are specified, or if
 one of FILES is "-".
 
 Default switches may be specified in ACK_OPTIONS environment variable or
 an .ackrc file. If you want no dependency on the environment, turn it
 off with --noenv.
 
-Example: ack -i select
+Example: $debian_internal_name -i select
 
 Searching:
   -i, --ignore-case     Ignore case distinctions in PATTERN
@@ -756,7 +758,7 @@
                         only works with -f, -g, -l, -L or -c.
 
 File presentation:
-  --pager=COMMAND       Pipes all ack output through COMMAND.  For example,
+  --pager=COMMAND       Pipes all $debian_internal_name output through COMMAND.  For example,
                         --pager="less -R".  Ignored if output is redirected.
   --nopager             Do not send output through a pager.  Cancels any
                         setting in ~/.ackrc, ACK_PAGER or ACK_PAGER_COLOR.
@@ -772,7 +774,7 @@
   --color-filename=COLOR
   --color-match=COLOR
   --color-lineno=COLOR  Set the color for filenames, matches, and line numbers.
-  --flush               Flush output immediately, even when ack is used
+  --flush               Flush output immediately, even when $debian_internal_name is used
                         non-interactively (when output goes to a pipe or
                         file).
 
@@ -789,7 +791,7 @@
                         Ignores CVS, .svn and other ignored directories
   -u, --unrestricted    All files and directories searched
   --[no]ignore-dir=name Add/Remove directory from the list of ignored dirs
-  -r, -R, --recurse     Recurse into subdirectories (ack's default behavior)
+  -r, -R, --recurse     Recurse into subdirectories ($debian_internal_name's default behavior)
   -n, --no-recurse      No descending into subdirectories
   -G REGEX              Only search files that match REGEX
 
@@ -797,7 +799,7 @@
   --type=perl           Include only Perl files.
   --noperl              Exclude Perl files.
   --type=noperl         Exclude Perl files.
-                        See "ack --help type" for supported filetypes.
+                        See "$debian_internal_name --help type" for supported filetypes.
 
   --type-set TYPE=.EXTENSION[,.EXT2[,...]]
                         Files with the given EXTENSION(s) are recognized as
@@ -828,7 +830,7 @@
 
 Exit status is 0 if match, 1 if no match.
 
-This is version $VERSION of ack.
+This is version $VERSION of $debian_internal_name.
 END_OF_HELP
 
     return;
@@ -843,9 +845,9 @@
 
 sub show_help_types {
     App::Ack::print( <<'END_OF_HELP' );
-Usage: ack [OPTION]... PATTERN [FILES]
+Usage: ack-grep [OPTION]... PATTERN [FILES]
 
-The following is the list of filetypes supported by ack.  You can
+The following is the list of filetypes supported by ack-grep.  You can
 specify a file type with the --type=TYPE format, or the --TYPE
 format.  For example, both --type=perl and --perl work.
 
@@ -888,7 +890,7 @@
 
 =head2 get_version_statement
 
-Returns the version information for ack.
+Returns the version information for ack-grep.
 
 =cut
 
@@ -904,7 +906,7 @@
     my $ver = sprintf( '%vd', $^V );
 
     return <<"END_OF_VERSION";
-ack $VERSION
+$debian_internal_name $VERSION
 Running under Perl $ver at $this_perl
 
 $copyright
@@ -916,7 +918,7 @@
 
 =head2 print_version_statement
 
-Prints the version information for ack.
+Prints the version information for ack-grep.
 
 =cut
 
@@ -928,7 +930,7 @@
 
 =head2 get_copyright
 
-Return the copyright for ack.
+Return the copyright for ack-grep.
 
 =cut
 
@@ -1587,7 +1589,7 @@
 
 =head2 input_from_pipe()
 
-Returns true if ack's input is coming from a pipe.
+Returns true if ack-grep's input is coming from a pipe.
 
 =cut
 
@@ -1598,7 +1600,7 @@
 
 =head2 output_to_pipe()
 
-Returns true if ack's input is coming from a pipe.
+Returns true if ack-grep's input is coming from a pipe.
 
 =cut
 
