debian/0000755000000000000000000000000012251675502007173 5ustar debian/patches/0000755000000000000000000000000012251603054010613 5ustar debian/patches/app-rename0000644000000000000000000007224112251603054012571 0ustar Description: rename the program from ack to ack-grep in the POD documentation Forwarded: not-needed Author: Ryan Niebur Reviewed-by: gregor herrmann Last-Update: 2013-05-11 Index: ack-grep/ack =================================================================== --- ack-grep.orig/ack 2013-12-10 13:16:34.000000000 +0100 +++ ack-grep/ack 2013-12-10 13:16:34.000000000 +0100 @@ -1037,12 +1037,12 @@ =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 @@ -1050,7 +1050,7 @@ Ack 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. +to the given PATTERN. By default, ack-grep prints the matching lines. PATTERN is a Perl regular expression. Perl regular expressions are commonly found in other programming languages, but for the particulars @@ -1058,25 +1058,25 @@ L. If you don't know how to use regular expression but are interested in learning, you may consult L. If you do not -need or want ack to use regular expressions, please see the +need or want ack-grep to use regular expressions, please see the C<-Q>/C<--literal> option. Ack can also list files that would be searched, without actually -searching them, to let you take advantage of ack's file-type filtering +searching them, to let you take advantage of ack-grep's file-type filtering capabilities. =head1 FILE SELECTION If files are not specified for searching, either on the command -line or piped in with the C<-x> option, I delves into +line or piped in with the C<-x> option, I delves into subdirectories selecting files for searching. -I is intelligent about the files it searches. It knows about +I 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 selection, I searches through regular files that +With no file selection, I searches through regular files that are not explicitly excluded by B<--ignore-dir> and B<--ignore-file> options, either present in F files or on the command line. @@ -1093,15 +1093,15 @@ =back -Run I with the C<--dump> option to see what settings are set. +Run I with the C<--dump> option to see what settings are set. -However, I always searches the files given on the command line, -no matter what type. If you tell I to search in a coredump, +However, I always searches the files given on the command line, +no matter what type. If you tell I to search in a coredump, it will search in a coredump. =head1 DIRECTORY SELECTION -I descends through the directory tree of the starting directories +I descends through the directory tree of the starting directories specified. If no directories are specified, the current working directory is used. However, it will ignore the shadow directories used by many version control systems, and the build directories used by the @@ -1110,11 +1110,11 @@ to add/remove multiple directories from the ignore list. For a complete list of directories that do not get searched, run -C. +C. =head1 WHEN TO USE GREP -I trumps I as an everyday tool 99% of the time, but don't +I trumps I as an everyday tool 99% of the time, but don't throw I away, because there are times you'll still need it. E.g., searching through huge files looking for regexes that can be @@ -1155,7 +1155,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 +If combined with B<-h> (B<--no-filename>) ack-grep outputs only one total count. =item B<--[no]color>, B<--[no]colour> @@ -1186,7 +1186,7 @@ =item B<--create-ackrc> -Dumps the default ack options to standard output. This is useful for +Dumps the default ack-grep options to standard output. This is useful for when you want to customize the defaults. =item B<--dump> @@ -1197,13 +1197,13 @@ =item B<--[no]env> B<--noenv> disables all environment processing. No F<.ackrc> is -read and all environment variables are ignored. By default, F +read and all environment variables are ignored. By default, F 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 or +unless ack-grep is running interactively (when output goes to a pipe or file). =item B<-f> @@ -1220,7 +1220,7 @@ =item B<--[no]filter> -Forces ack to act as if it were receiving input via a pipe. +Forces ack-grep to act as if it were receiving input via a pipe. =item B<--[no]follow> @@ -1272,9 +1272,9 @@ =item B<--ignore-ack-defaults> -Tells ack to completely ignore the default definitions provided with ack. +Tells ack-grep to completely ignore the default definitions provided with ack-grep. This is useful in combination with B<--create-ackrc> if you I want -to customize ack. +to customize ack-grep. =item B<--[no]ignore-dir=I>, B<--[no]ignore-directory=I> @@ -1287,7 +1287,7 @@ The I must always be a simple directory name. Nested directories like F 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 +are taken into account by ack-grep unless given explicitly on the command line. =item B<--ignore-file=I> @@ -1297,8 +1297,8 @@ =item B<-k>, B<--known-types> -Limit selected files to those with types that ack knows about. This is -equivalent to the default behavior found in ack 1. +Limit selected files to those with types that ack-grep knows about. This is +equivalent to the default behavior found in ack-grep 1. =item B<--lines=I> @@ -1322,8 +1322,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>, B<--max-count=I> @@ -1351,7 +1351,7 @@ =item B<--pager=I>, B<--nopager> -B<--pager> directs ack's output through I. This can also be specified +B<--pager> directs ack-grep's output through I. This can also be specified via the C and C environment variables. Using --pager does not suppress grouping and coloring like piping @@ -1367,7 +1367,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> @@ -1376,7 +1376,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> @@ -1403,11 +1403,11 @@ =item B<--sort-files> Sorts the found files lexicographically. Use this if you want your file -listings to be deterministic between runs of I. +listings to be deterministic between runs of I. =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. @@ -1424,7 +1424,7 @@ Type specifications can be repeated and are ORed together. -See I for a list of valid types. +See I for a list of valid types. =item B<--type-add I:I:I> @@ -1505,33 +1505,33 @@ as they are not interpreted by the shell. Basically, each I in the F<.ackrc> file is interpreted as one element of C<@ARGV>. -F looks in several locations for F<.ackrc> files; the searching +F looks in several locations for F<.ackrc> files; the searching process is detailed in L. These files are not considered if B<--noenv> is specified on the command line. =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 searches for foo in all perl files. I +I searches for foo in all perl files. I 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 +files as well when searching for --perl files? I 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 defines +type, then use B<--type-set>. I defines the type I to include files with the extensions .e or .eiffel. So to search for all eiffel files -containing the word Bertrand use I. +containing the word Bertrand use I. 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 +all eiffel files from a search. Redefining also works: I and I<.xs> files no longer belong to the type I. When defining your own types in the F<.ackrc> file you have to use @@ -1550,9 +1550,9 @@ In order to see all currently defined types, use I<--help-types>, e.g. -I +I -In addition to filtering based on extension (like ack 1.x allowed), ack 2 +In addition to filtering based on extension (like ack-grep 1.x allowed), ack-grep 2 offers additional filter types. The generic syntax is I<--type-set TYPE:FILTER:FILTERARGS>; I depends on the value of I. @@ -1602,7 +1602,7 @@ =head1 ENVIRONMENT VARIABLES -For commonly-used ack options, environment variables can make life +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. @@ -1611,7 +1611,7 @@ =item ACKRC Specifies the location of the user's F<.ackrc> file. If this file doesn't -exist, F looks in the default location. +exist, F looks in the default location. =item ACK_OPTIONS @@ -1654,11 +1654,11 @@ =item ACK_PAGER Specifies a pager program, such as C, C or C, to which -ack will send its output. +ack-grep will send its output. Using C does not suppress grouping and coloring like piping output on the command-line does, except that on Windows -ack will assume that C does not support color. +ack-grep will assume that C does not support color. C overrides C if both are specified. @@ -1676,18 +1676,18 @@ =head2 Vim integration -F integrates easily with the Vim text editor. Set this in your -F<.vimrc> to use F instead of F: +F integrates easily with the Vim text editor. Set this in your +F<.vimrc> to use F instead of F: - set grepprg=ack\ -k + set grepprg=ack-grep\ -k -That example uses C<-k> to search through only files of the types ack +That example uses C<-k> to search through only files of the types ack-grep knows about, but you may use other default flags. Now you can search -with F and easily step through the results in Vim: +with F and easily step through the results in Vim: :grep Dumper perllib -Miles Sterrett has written a Vim plugin for F which allows you to use +Miles Sterrett has written a Vim plugin for F which allows you to use C<:Ack> instead of C<:grep>, as well as several other advanced features. L @@ -1705,13 +1705,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" =head2 Shell and Return Code -For greater compatibility with I, I in normal use returns +For greater compatibility with I, I in normal use returns shell return or exit code of 0 only if something is found and 1 if no match is found. @@ -1724,9 +1724,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> @@ -1736,8 +1736,8 @@ =head2 Use B<-f> to see what files have been selected -Ack's B<-f> was originally added as a debugging tool. If ack is -not finding matches you think it should find, run F to see +Ack's B<-f> was originally added as a debugging tool. If ack-grep is +not finding matches you think it should find, run F to see what files have been selected. You can also add the C<--show-types> options to show the type of each file selected. @@ -1758,16 +1758,16 @@ =head2 Use F<-f> for working with big codesets -Ack does more than search files. C will create a +Ack does more than search files. C will create a list of all the Perl files in a tree, ideal for sending into F. 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/that/g' $(ack -f --perl) + perl -p -i -e's/this/that/g' $(ack-grep -f --perl) =head2 Use F<-Q> when in doubt about metacharacters @@ -1776,15 +1776,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, 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. @@ -1825,7 +1825,7 @@ This shows how to pick out particular parts of a match using ( ) within regular expression. - ack '=head(\d+)\s+(.*)' --output=' $1 : $2' + ack-grep '=head(\d+)\s+(.*)' --output=' $1 : $2' input file contains "=head1 NAME" output "1 : NAME" @@ -1836,39 +1836,39 @@ =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 +Probably because it's of a type that ack-grep doesn't recognize. +ack-grep's searching behavior is driven by filetype. B -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. You can use the C<--show-types> switch to show which type -ack thinks each file is. +ack-grep thinks each file is. -=head2 Wouldn't it be great if F did search & replace? +=head2 Wouldn't it be great if F 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 I make ack recognize F<.xyz> files? +=head2 Can I make ack-grep recognize F<.xyz> files? Yes! Please see L. If you think -that F should recognize a type by default, please see +that F should recognize a type by default, please see L. =head2 There's already a program/package called ack. 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 @@ -1897,15 +1897,15 @@ =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> and C<--C> switches for displaying context. -=head2 Why is ack telling me I have an invalid option when searching for C<+foo>? +=head2 Why is ack-grep telling me I have an invalid option when searching for C<+foo>? -ack treats command line options beginning with C<+> or C<-> as options; if you +ack-grep treats command line options beginning with C<+> or C<-> as options; if you would like to search for these, you may prefix your search term with C<--> or use the C<--match> option. (However, don't forget that C<+> is a regular expression metacharacter!) @@ -1974,7 +1974,7 @@ =head1 DIFFERENCES BETWEEN ACK 1.X AND ACK 2.X -A lot of changes were made for ack 2; here is a list of them. +A lot of changes were made for ack-grep 2; here is a list of them. =head2 GENERAL CHANGES @@ -1982,11 +1982,11 @@ =item * -When no selectors are specified, ack 1.x only searches through files that -it can map to a file type. ack 2.x, by contrast, will search through +When no selectors are specified, ack-grep 1.x only searches through files that +it can map to a file type. ack-grep 2.x, by contrast, will search through every regular, non-binary file that is not explicitly ignored via B<--ignore-file> or B<--ignore-dir>. This is similar to the behavior of the -B<-a/--all> option in ack 1.x. +B<-a/--all> option in ack-grep 1.x. =item * @@ -1996,12 +1996,12 @@ =item * -ack now loads multiple ackrc files; see L for +ack-grep now loads multiple ackrc files; see L for details. =item * -ack's default filter definitions aren't special; you may tell ack to +ack-grep's default filter definitions aren't special; you may tell ack-grep to completely disregard them if you don't like them. =back @@ -2014,15 +2014,15 @@ Because of the change in default search behavior, the B<-a/--all> and B<-u/--unrestricted> options have been removed. In addition, the -B<-k/--known-types> option was added to cause ack to behave with -the default search behavior of ack 1.x. +B<-k/--known-types> option was added to cause ack-grep to behave with +the default search behavior of ack-grep 1.x. =item * The B<-G> option has been removed. Two regular expressions on the command line was considered too confusing; to simulate B<-G>'s functionality, you may use the new B<-x> option to pipe filenames from one invocation of -ack into another. +ack-grep into another. =item * @@ -2065,12 +2065,12 @@ =item * -B<-x> was added to tell ack to accept a list of filenames via standard input; +B<-x> was added to tell ack-grep to accept a list of filenames via standard input; this list is the list of filenames that will be used for the search. =item * -B<-s> was added to tell ack to suppress error messages about non-existent or +B<-s> was added to tell ack-grep to suppress error messages about non-existent or unreadable files. =item * @@ -2091,7 +2091,7 @@ =item * B<--create-ackrc> was added so that users may create custom ackrc files based -on the default settings loaded by ack, and so that users may easily view those +on the default settings loaded by ack-grep, and so that users may easily view those defaults. =item * @@ -2100,12 +2100,12 @@ =item * -B<--ignore-ack-defaults> was added so that users may ignore ack's default +B<--ignore-ack-defaults> was added so that users may ignore ack-grep's default options in favor of their own. =item * -B<--bar> was added so ack users may consult Admiral Ackbar. +B<--bar> was added so ack-grep users may consult Admiral Ackbar. =back @@ -2123,9 +2123,9 @@ All enhancement requests MUST first be posted to the ack-users mailing list at L. 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 in the ack +There is a list of enhancements I want to make to F in the ack issues list at Github: L Patches are always welcome, but patches with tests get the most @@ -2133,7 +2133,7 @@ =head1 SUPPORT -Support for and information about F can be found at: +Support for and information about F can be found at: =over 4 @@ -2171,7 +2171,7 @@ How appropriate to have Inowledgements! -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 Fraser Tweedale, RaEl GundEn, Steffen Jaeckel, Index: ack-grep/Ack.pm =================================================================== --- ack-grep.orig/Ack.pm 2013-12-10 13:16:34.000000000 +0100 +++ ack-grep/Ack.pm 2013-12-10 13:16:34.000000000 +0100 @@ -53,9 +53,9 @@ =head1 SYNOPSIS -If you want to know about the F program, see the F file itself. +If you want to know about the F program, see the F file itself. -No user-serviceable parts inside. F is all that should use this. +No user-serviceable parts inside. F is all that should use this. =head1 FUNCTIONS @@ -77,7 +77,7 @@ =head2 warn( @_ ) -Put out an ack-specific warning. +Put out an ack-grep-specific warning. =cut @@ -87,7 +87,7 @@ =head2 die( @_ ) -Die in an ack-specific way. +Die in an ack-grep-specific way. =cut @@ -119,7 +119,7 @@ sub _thpppt { my $y = _get_thpppt(); - App::Ack::print( "$y ack $_[0]!\n" ); + App::Ack::print( "$y ack-grep $_[0]!\n" ); exit 0; } @@ -244,11 +244,11 @@ return show_help_types() if $help_arg =~ /^types?/; App::Ack::print( <<"END_OF_HELP" ); -Usage: ack [OPTION]... PATTERN [FILES OR DIRECTORIES] +Usage: ack-grep [OPTION]... PATTERN [FILES OR DIRECTORIES] Search for PATTERN in each source file in the tree from the current directory on down. If any files or directories are specified, then -only those files and directories are checked. ack may also search +only those files and directories are checked. ack-grep may also search STDIN, but only if no file or directory arguments are specified, or if one of them is "-". @@ -256,7 +256,7 @@ an .ackrc file. If you want no dependency on the environment, turn it off with --noenv. -Example: ack -i select +Example: ack-grep -i select Searching: -i, --ignore-case Ignore case distinctions in PATTERN @@ -299,7 +299,7 @@ File presentation: - --pager=COMMAND Pipes all ack output through COMMAND. For + --pager=COMMAND Pipes all ack-grep output through COMMAND. For example, --pager="less -R". Ignored if output is redirected. --nopager Do not send output through a pager. Cancels @@ -318,7 +318,7 @@ --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 ack-grep is used non-interactively (when output goes to a pipe or file). @@ -340,12 +340,12 @@ -r, -R, --recurse Recurse into subdirectories (default: on) -n, --no-recurse No descending into subdirectories --[no]follow Follow symlinks. Default is off. - -k, --known-types Include only files of types that ack recognizes. + -k, --known-types Include only files of types that ack-grep recognizes. --type=X Include only X files, where X is a recognized filetype. --type=noX Exclude X files. - See "ack --help-types" for supported filetypes. + See "ack-grep --help-types" for supported filetypes. File type specification: --type-set TYPE:FILTER:FILTERARGS @@ -363,14 +363,14 @@ --[no]env Ignore environment variables and global ackrc files. --env is legal but redundant. --ackrc=filename Specify an ackrc file to use - --ignore-ack-defaults Ignore default definitions included with ack. + --ignore-ack-defaults Ignore default definitions included with ack-grep. --create-ackrc Outputs a default ackrc for your customization to standard output. --help, -? This help --help-types Display all known types --dump Dump information on which options are loaded from which RC files - --[no]filter Force ack to treat standard input as a pipe + --[no]filter Force ack-grep to treat standard input as a pipe (--filter) or tty (--nofilter) --man Man page --version Display version & copyright @@ -380,7 +380,7 @@ Exit status is 0 if match, 1 if no match. -This is version $VERSION of ack. +This is version $VERSION of ack-grep. END_OF_HELP return; @@ -395,9 +395,9 @@ sub show_help_types { App::Ack::print( <<'END_OF_HELP' ); -Usage: ack [OPTION]... PATTERN [FILES OR DIRECTORIES] +Usage: ack-grep [OPTION]... PATTERN [FILES OR DIRECTORIES] -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. @@ -438,7 +438,7 @@ =head2 get_version_statement -Returns the version information for ack. +Returns the version information for ack-grep. =cut @@ -454,7 +454,7 @@ my $ver = sprintf( '%vd', $^V ); return <<"END_OF_VERSION"; -ack ${VERSION} +ack-grep ${VERSION} Running under Perl $ver at $this_perl $copyright @@ -466,7 +466,7 @@ =head2 print_version_statement -Prints the version information for ack. +Prints the version information for ack-grep. =cut @@ -478,7 +478,7 @@ =head2 get_copyright -Return the copyright for ack. +Return the copyright for ack-grep. =cut @@ -547,7 +547,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 debian/patches/series0000644000000000000000000000001312207452324012025 0ustar app-rename debian/clean0000644000000000000000000000001712207460250010167 0ustar ack-standalone debian/ack-grep.postrm0000644000000000000000000000027312207451146012131 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/bash_completion.d/ack-grep 2.04-2~ ack-grep -- "$@" fi #DEBHELPER# debian/ack-grep.preinst0000644000000000000000000000027312207451146012271 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/bash_completion.d/ack-grep 2.04-2~ ack-grep -- "$@" fi #DEBHELPER# debian/compat0000644000000000000000000000000212207451146010366 0ustar 8 debian/watch0000644000000000000000000000020312207451146010214 0ustar # format version number, currently 3; this line is compulsory! version=3 https://metacpan.org/release/ack/ .*/ack-([0-9.]*).tar.gz debian/changelog0000644000000000000000000001564312251675502011056 0ustar ack-grep (2.12-1) unstable; urgency=high * New upstream security fix release + Disables --pager,--output and --regexp in per project .ackrc files. Closes: #731848 + Refresh patch app-rename. * Bump Standards-Version to 3.9.5 (no changes). -- Axel Beckert Tue, 10 Dec 2013 21:36:18 +0100 ack-grep (2.10-1) unstable; urgency=low * New upstream release + Refresh patch * Change homepage header again, this time to http://beyondgrep.com/ -- Axel Beckert Thu, 26 Sep 2013 00:01:56 +0200 ack-grep (2.08-1) unstable; urgency=low * New upstream release + ACK_PAGER + ACK_PAGER_COLOR now work as advertised (Closes: #709367) + Removed debian/patches/spelling.patch, fixed upstream. + Refresh debian/patches/app-rename * Add ack-standalone to debian/clean + Add myself to Uploaders -- Axel Beckert Wed, 28 Aug 2013 22:58:34 +0200 ack-grep (2.04-2) unstable; urgency=low * Team upload. * Remove obsolete conffile /etc/bash_completion.d/ack-grep. Thanks to Jakub Wilk for pointing out the mistake. -- gregor herrmann Sun, 12 May 2013 23:54:34 +0200 ack-grep (2.04-1) unstable; urgency=low * Team upload. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ Axel Beckert ] * Set homepage to http://betterthangrep.com/ [ gregor herrmann ] * New upstream release. Closes: #706125 ("new major upstream version") * bash-completion script is removed upstream. Drop patch, and bash- completion parts in debian/rules and debian/control. (Closes: #696466, #697207) * The split between ack and ack-base is gone. Drop patch, update debian/rules. * Refresh patch app-rename. * Remove debian/clean, simplify clean actions in debian/rules. * Drop patch remove-incorrect-documentation (hopefully not needed anymore). * Add new patch to fix some spelling mistakes in the POD. * Update upstream and packaging copyright/license information. * Bump debhelper compatibility level to 8. * Set Standards-Version to 3.9.4 (no changes). * Update Vcs-Git filed. * Add debian/NEWS pointing to major changes in ack2. * Update build/runtime dependencies. -- gregor herrmann Sat, 11 May 2013 19:42:48 +0200 ack-grep (1.96-2) unstable; urgency=low * Remove unnecessary README.source * Fix manpage patch documenting stdin behavior (Closes: #676235) - Move the ack-base manpage substitution to dh_auto_install to ensure it will happen -- Ryan Niebur Fri, 08 Jun 2012 19:09:10 -0700 ack-grep (1.96-1) unstable; urgency=low * New Upstream Release (Closes: #636858) - fixes bash completion spacing (Closes: #562519) * Update to copyright format 1.0 - Fix copyright file to reference GPL-1 instead of GPL symlink - Update copyright information * Update policy version to 3.9.3 * Refresh patches - add DEP3 patch tags * add patch to fix bash completion * Transfer maintenance into Debian Perl Group and update Maintainer / Vcs-* fields to reflect that * Remove quilt from build deps and use source format 3.0 quilt * Fix rename patch to allow displaying the original program name in --help and --version output when the user has created an ack symlink (Closes: #631208) * Remove incorrect information about using - for stdin (Closes: #593904) - Fix the ACK-BASE title in the manpage to say ACK-GREP -- Ryan Niebur Sun, 03 Jun 2012 22:48:02 -0700 ack-grep (1.92-1) unstable; urgency=low * change section to utils to match the override * New Upstream Version * refresh/improve some patches * remove patches fixed upstream -- Ryan Niebur Thu, 24 Dec 2009 20:54:35 -0800 ack-grep (1.90-2) unstable; urgency=low * fix logic when deciding whether to run the pager or not (Closes: #554459) * update my email address -- Ryan Niebur Sat, 07 Nov 2009 10:28:56 -0800 ack-grep (1.90-1) unstable; urgency=low * add missing full stop in long description, thanks to Enrico Zini for spotting * don't show dev versions in watch file * add DMUA field * New Upstream Version * refresh patches, removing the bash completion ones (fixed upstream) * cleanup d/rules * set Standards-Version to 3.8.3 * don't test with ack-base, that's broken -- Ryan Niebur Mon, 07 Sep 2009 23:29:56 -0700 ack-grep (1.88-1) unstable; urgency=low * New Upstream Version (Closes: #504071) * s/.cvs/CVS/ in the long description (Closes: #512137) * adopt package (Closes: #516778) * add my Vcs-* headers * debhelper 7 * quilt, redo patches from scratch * run the test (if possible), improved testing * bump standards version to 3.8.1 * machine readable copyright format * add newer version of etc/ack.bash_completion.sh that supports Debian's name for ack * install the bash completion * add README.source * remove cdbs and patchutils from build deps * make short Description pass the is a test * add about highlighting to long description, as that is another very useful default feature -- Ryan Niebur Tue, 17 Mar 2009 17:19:44 -0700 ack-grep (1.80-1) unstable; urgency=low * New upstream (Closes: #469956) -- Peter Makholm Sat, 05 Apr 2008 10:08:27 +0000 ack-grep (1.76-1) unstable; urgency=low * New upstream - Don't depend on filesystem order for tests (Closes: #451403) * Add dependency on perl-doc (Closes: #462320) - I believe this to be the least intrusive of the suggested fixes. If anybody is interested in having ack-grep installed without perl-doc installed please reopen this bug or report a whishlist bug. * Bump standards-version (no changes) * Exclude some test files from being cleaned by dh_clean -- Peter Makholm Fri, 25 Jan 2008 16:13:25 +0000 ack-grep (1.72-1) unstable; urgency=low * New upstream release - Now recognizes .cc as C++ file extension (Closes: 447853) -- Peter Makholm Mon, 12 Nov 2007 07:34:40 +0000 ack-grep (1.70-1) unstable; urgency=low * New upstream release -- Peter Makholm Mon, 05 Nov 2007 17:10:21 +0000 ack-grep (1.68-2) unstable; urgency=low * Add build dependency on libfile-next-perl (Closes: #447456) -- Peter Makholm Tue, 23 Oct 2007 04:17:38 +0000 ack-grep (1.68-1) unstable; urgency=low * New upstream * Do not build ack-standalone (cleans the diff) * Now maintained with Subversion on collab-maint.alioth.debian.org * Added Vcs-* and Homepage fields to control file -- Peter Makholm Wed, 17 Oct 2007 15:51:21 +0000 ack-grep (1.66-1) unstable; urgency=low * Initial Release (closes: #436101). -- Peter Makholm Sun, 07 Oct 2007 13:44:43 +0000 debian/copyright0000644000000000000000000002661512211134471011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ack Upstream-Contact: Andy Lester Source: https://metacpan.org/release/ack/ Files: * Copyright: 2005-2013, Andy Lester License: Artistic-2.0 Files: debian/* Copyright: 2007-2008, Peter Makholm 2009-2012, Ryan Niebur > License: Artistic or GPL-1+ Files: t/swamp/parrot.pir t/swamp/blib/ignore.pir Copyright: Copyright (C) 2004, The Perl Foundation. License: Artistic Files: t/swamp/c-header.h Copyright: Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, by Larry Wall and others License: Artistic or GPL-1+ Files: t/swamp/c-source.c Copyright: Copyright (C) 2000, 2001 Free Software Foundation, Inc. License: GPL-2+ Files: t/swamp/Rakefile Copyright: 2005 by Michael Neumann 2006-2009 by Aaron Patterson 2006-2009 by Mike Dalessio License: GPL-2 License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2 . On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. License: Artistic-2.0 Copyright (c) 2000-2006, The Perl Foundation. . Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. . Preamble . This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. . You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. . Definitions . "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. . "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. . "You" and "your" means any person who would like to copy, distribute, or modify the Package. . "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. . "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. . "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. . "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. . "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. . "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. . "Source" form means the source code, documentation source, and configuration files for the Package. . "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. . Permission for Use and Modification Without Distribution . (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. . Permissions for Redistribution of the Standard Version . (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. . (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. . Distribution of Modified Versions of the Package as Source . (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: . (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. . Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source . (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. . (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. . Aggregating or Linking the Package . (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. . (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. . Items That are Not Considered Part of a Modified Version . (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. . General Provisions . (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. . (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. . (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. . (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. . (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/control0000644000000000000000000000234412233460641010575 0ustar Source: ack-grep Maintainer: Debian Perl Group Uploaders: Ryan Niebur , Axel Beckert Section: utils Priority: optional Build-Depends: debhelper (>= 8), perl, libfile-next-perl (>= 1.10), libtest-differences-perl, libtest-pod-perl, perl (>= 5.13.11) | libtest-simple-perl (>= 0.98) Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/ack-grep.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/ack-grep.git Homepage: http://beyondgrep.com/ Package: ack-grep Architecture: all Depends: libfile-next-perl (>= 1.10), ${perl:Depends}, ${misc:Depends} Description: grep-like program specifically for large source trees Ack is designed as a replacement for 99% of the uses of grep. ack 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. . Ack ignores backup files and files under CVS and .svn directories. It also highlights matches to help you see where the match was. Ack uses perl regular expressions. debian/source/0000755000000000000000000000000012207451146010470 5ustar debian/source/format0000644000000000000000000000001412207451146011676 0ustar 3.0 (quilt) debian/ack-grep.postinst0000644000000000000000000000027312207451146012470 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports rm_conffile; then dpkg-maintscript-helper rm_conffile \ /etc/bash_completion.d/ack-grep 2.04-2~ ack-grep -- "$@" fi #DEBHELPER# debian/NEWS0000644000000000000000000000062612207451146007673 0ustar ack-grep (2.04-1) unstable; urgency=low From upstream Changes: ack 2 makes some big changes in its behaviors that could trip up users who are used to the idiosyncracies of ack 1.x. These changes could affect your searching happiness, so please read them. Read the full list in ./usr/share/doc/ack-grep/changelog.gz. -- gregor herrmann Sat, 11 May 2013 18:38:48 +0200 debian/rules0000755000000000000000000000065712207451146010260 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_test: # ack behaves differently, causing the tests to fail [ ! -t 0 ] || dh_auto_test override_dh_clean: dh_clean --exclude=t/swamp/ override_dh_auto_install: dh_auto_install mv -v $(TMP)/usr/bin/ack $(TMP)/usr/bin/ack-grep mv -v $(TMP)/usr/share/man/man1/ack.1p $(TMP)/usr/share/man/man1/ack-grep.1p