From 09d7da865f540ee5f3861add2912c35ea0cd87d7 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 25 Jul 2010 15:02:27 +0000 Subject: Accept stdin as input for patcheck. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Rafaël Carré, rafael d carre a gmail Originally committed as revision 24499 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tools/patcheck | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/patcheck') diff --git a/tools/patcheck b/tools/patcheck index 521138ae93..de20500f10 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -1,5 +1,13 @@ #!/bin/sh +# if no argument provided, write stdin to a file and re-run the script +if [ $# = 0 ]; then + cat > patcheck.stdout + $0 patcheck.stdout + rm -f patcheck.stdout + exit +fi + TMP=patcheck.tmp OPT="-nH" #FILES=`grep '^+++' $* | sed 's/+++ //g'` -- cgit v1.2.3