diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-03 07:44:52 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-03 07:44:52 +0000 |
commit | ac24590488897cdddadc7d5dc2093ef6e2b14abd (patch) | |
tree | f3965372a41ef90888f66d29998c156128140748 /Porting/patchls | |
parent | 4e0bac30cf8781c4385a7617e92d21af5cfddbff (diff) | |
download | perl-ac24590488897cdddadc7d5dc2093ef6e2b14abd.tar.gz |
patchls tweak from Andreas Koenig
p4raw-id: //depot/perl@4633
Diffstat (limited to 'Porting/patchls')
-rw-r--r-- | Porting/patchls | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Porting/patchls b/Porting/patchls index 2e4a0ac5a7..4329f4cebc 100644 --- a/Porting/patchls +++ b/Porting/patchls @@ -17,7 +17,7 @@ use Text::Tabs qw(expand unexpand); use strict; use vars qw($VERSION); -$VERSION = 2.10; +$VERSION = 2.11; sub usage { die qq{ @@ -35,6 +35,7 @@ die qq{ (F has \$ appended unless it contains a /). -e Expect patched files to Exist (relative to current directory) Will print warnings for files which don't. Also affects -4 option. + - Read patch from STDIN other options for special uses: -I just gather and display summary Information about the patches. -4 write to stdout the PerForce commands to prepare for patching. @@ -159,7 +160,9 @@ foreach my $argv (@ARGV) { warn "Ignored directory $in\n"; next; } - unless (open F, "<$in") { + if ($in eq "-") { + *F = \*STDIN; + } elsif (not open F, "<$in") { warn "Unable to open $in: $!\n"; next; } |