From b856b3652ccdf763f040f83d26171516ee72095f Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Thu, 23 Jun 2005 16:36:00 +0000 Subject: * scripts/buildpatch: - Produce diffstat before patch. - diffstat & patch to STDOUT. Signed-off-by: Michael Krufky --- v4l/scripts/buildpatch | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'v4l/scripts') diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch index e308d7ec2..0778ee1ee 100644 --- a/v4l/scripts/buildpatch +++ b/v4l/scripts/buildpatch @@ -157,6 +157,10 @@ sub delfile ($) { ################################################################# # main +my $patchtmploc = "/tmp/temp.patch"; +open(PATCHTMP, ">", $patchtmploc) || die("can't open tempfile: $!"); +select(PATCHTMP); + printf STDERR <) { } } + +close(PATCHTMP); +select(STDOUT); + +system "diffstat -p0 -w72 $patchtmploc"; +print "\n",readfile($patchtmploc); +unlink $patchtmploc; -- cgit v1.2.3