diff options
Diffstat (limited to 'v4l/scripts')
-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; |