Skip to content

Commit

Permalink
update prereqs
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Dec 11, 2008
1 parent 9b84677 commit 4937fab
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 31 deletions.
13 changes: 10 additions & 3 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ my $build = $class->new(
create_readme => 1,
create_makefile_pl => 'traditional',
requires => {
'perl' => '5.006',
'perl' => 0, # not specified
'Exporter' => 0,
'File::Basename' => 0,
'Getopt::Long' => 2.37, # 2.20 in perl 5.00504; 2.25 in perl 5.006002; 2.35 in perl 5.008008;
'IO::File' => 0,
'Probe::Perl' => 0.01,
},
build_requires => {
'Test::More' => 0.47,
'File::Spec' => 3.2701, # 0.8 in perl 5.00504; 0.86 in perl 5.006002; 3.12 in perl 5.008008; 3.2701 is new
'File::Temp' => 0.20, # 0.14 in perl 5.006002; 0.16 in perl 5.008008; 0.20 is new
'IO::CaptureOutput' => 1.1,
'Test::More' => 0.62, # 0.47 in perl 5.006002; 0.62 in perl 5.008008;
},
meta_add => {
no_index => {
Expand All @@ -30,4 +38,3 @@ my $build = $class->new(
},
);
$build->create_build_script;

15 changes: 13 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ license: apache
resources:
license: http://apache.org/licenses/LICENSE-2.0
requires:
perl: 5.006
Exporter: 0
File::Basename: 0
Getopt::Long: 2.37
IO::File: 0
Probe::Perl: 0.01
perl: 0
build_requires:
Test::More: 0.47
File::Spec: 3.2701
File::Temp: 0.2
IO::CaptureOutput: 1.1
Test::More: 0.62
provides:
Tee:
file: lib/Tee.pm
version: 0.13_51
Tee::App:
file: lib/Tee/App.pm
version: 0.13_51
generated_by: Module::Build version 0.3
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.2.html
Expand Down
11 changes: 9 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Note: this file was auto-generated by Module::Build::Compat version 0.30
require 5.006;
use ExtUtils::MakeMaker;
WriteMakefile
(
Expand All @@ -11,7 +10,15 @@ WriteMakefile
],
'VERSION_FROM' => 'lib/Tee.pm',
'PREREQ_PM' => {
'Test::More' => '0.47'
'Getopt::Long' => '2.37',
'IO::File' => 0,
'IO::CaptureOutput' => '1.1',
'File::Spec' => '3.2701',
'Exporter' => 0,
'Test::More' => '0.62',
'Probe::Perl' => '0.01',
'File::Temp' => '0.2',
'File::Basename' => 0
}
)
;
49 changes: 25 additions & 24 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
Tee - Pure Perl emulation of GNU tee

VERSION
This documentation describes version 0.13_51.
This documentation refers to version 0.13_51

SYNOPSIS
# from Perl
Expand All @@ -13,28 +13,29 @@ SYNOPSIS
$ cat README.txt | ptee COPY.txt

DESCRIPTION
The "Tee" distribution provides a pure Perl emulation of the standard
GNU tool "tee". It is designed to be a platform-independent replacement
for operating systems without a native "tee" program. As with "tee", it
passes input received on STDIN through to STDOUT while also writing a
copy of the input to one or more files. By default, files will be
overwritten.

In addition to this module, the distribution also provides the ptee
program for a command line replacement for "tee". Unlike "tee", "ptee"
does not support ignoring interrupts, as signal handling is not
sufficiently portable.
The "Tee" distribution provides the ptee program, a pure Perl emulation
of the standard GNU tool "tee". It is designed to be a
platform-independent replacement for operating systems without a native
"tee" program. As with "tee", it passes input received on STDIN through
to STDOUT while also writing a copy of the input to one or more files.
By default, files will be overwritten.

Unlike "tee", "ptee" does not support ignoring interrupts, as signal
handling is not sufficiently portable.

The "Tee" module provides a convenience function that may be used in
place of "system()" to redirect commands through "ptee".

USAGE
"tee()"
tee( $command, @filenames );
tee( $command, \%options, @filenames );

Executes the given command, teeing output to STDOUT and a list of files.
Unlike with "system()", the command must be a string as the command
shell is used for redirection and piping. It returns true if the command
has an exit status of zero and false otherwise. The exit status is
preserved in $?.
Executes the given command via "system()", but pipes it through ptee to
copy output to the list of files. Unlike with "system()", the command
must be a string as the command shell is used for redirection and
piping. The return value of "system()" is passed through, but reflects
the success of the "ptee" command, which isn't very useful.

The second argument may be a hash-reference of options. Recognized
options include:
Expand All @@ -52,6 +53,13 @@ LIMITATIONS
a command separately is IPC::Run3, though it does not allow passing it
through to a terminal at the same time.

SEE ALSO
* ptee

* IPC::Run3

* IO::Tee

BUGS
Please report any bugs or feature using the CPAN Request Tracker. Bugs
can be submitted through the web interface at
Expand All @@ -60,13 +68,6 @@ BUGS
When submitting a bug or request, please include a test-file or a patch
to an existing test-file that illustrates the bug or desired feature.

SEE ALSO
* ptee

* IPC::Run3

* IO::Tee

AUTHOR
David A. Golden (DAGOLDEN)

Expand Down

0 comments on commit 4937fab

Please sign in to comment.