[SCM] libav/experimental: Accept stdin as input for patcheck.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:12:39 UTC 2013


The following commit has been merged in the experimental branch:
commit 09d7da865f540ee5f3861add2912c35ea0cd87d7
Author: Rafaël Carré <rafael.carre at gmail.com>
Date:   Sun Jul 25 15:02:27 2010 +0000

    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

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'`

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list