diff options
author | Michael Krufky <devnull@localhost> | 2005-06-23 16:36:00 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-06-23 16:36:00 +0000 |
commit | b856b3652ccdf763f040f83d26171516ee72095f (patch) | |
tree | e00b51528d05588ab999e11941939c8adb6a0e5d /v4l/scripts/buildpatch | |
parent | ea0fd8f66cbc4d010e74d7b952d2176c3fd3cf99 (diff) | |
download | mediapointer-dvb-s2-b856b3652ccdf763f040f83d26171516ee72095f.tar.gz mediapointer-dvb-s2-b856b3652ccdf763f040f83d26171516ee72095f.tar.bz2 |
* scripts/buildpatch:
- Produce diffstat before patch.
- diffstat & patch to STDOUT.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'v4l/scripts/buildpatch')
-rw-r--r-- | v4l/scripts/buildpatch | 11 |
1 files changed, 11 insertions, 0 deletions
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 <<EOF,$CODE; kernel in $LINUX is $VERSION (0x%x) EOF @@ -180,3 +184,10 @@ while (my $line = <CONFIG>) { } } + +close(PATCHTMP); +select(STDOUT); + +system "diffstat -p0 -w72 $patchtmploc"; +print "\n",readfile($patchtmploc); +unlink $patchtmploc; |