aboutsummaryrefslogtreecommitdiffstats
path: root/tools/patcheck
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-25 15:02:27 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-07-25 15:02:27 +0000
commit09d7da865f540ee5f3861add2912c35ea0cd87d7 (patch)
tree691c2a803abb1bce3ae70759da8fd713865e4659 /tools/patcheck
parent28e241de5daf6cc9feb767eb7f37daa413293477 (diff)
downloadffmpeg-09d7da865f540ee5f3861add2912c35ea0cd87d7.tar.gz
Accept stdin as input for patcheck.
Patch by Rafaël Carré, rafael d carre a gmail Originally committed as revision 24499 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-xtools/patcheck8
1 files changed, 8 insertions, 0 deletions
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'`