[FFmpeg-devel] [PATCH] patcheck: accept patch from stdin
Rafaël Carré
rafael.carre
Sat Jul 24 07:11:42 CEST 2010
example: git diff origin | ./patcheck
---
tools/patcheck | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tools/patcheck b/tools/patcheck
index 521138a..de20500 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'`
--
1.7.0.4
More information about the ffmpeg-devel
mailing list