X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Porting%2Fpatchls;h=1803ef72631ce647eaccb252e95306401ea22e89;hb=b26492eee9e9f6169aa5698b42a13506468cb846;hp=2e4a0ac5a7bf5b99dbf80d4a1d05c430eb74ed97;hpb=2c2d71f566f0a758d1486480f45158c0e70ea496;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Porting/patchls b/Porting/patchls index 2e4a0ac..1803ef7 100644 --- a/Porting/patchls +++ b/Porting/patchls @@ -1,4 +1,4 @@ -#!/bin/perl -w +#!/usr/bin/perl -w # # patchls - patch listing utility # @@ -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; }