diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-02 16:04:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-03 13:29:12 +0200 |
commit | c673a90b0d7c472db36caea0f27dbd2d5f3095ad (patch) | |
tree | 80f7338436dc9ec8d94fda1f3d242ccf99896786 /tools | |
parent | c9de83fefd5bba1585c3db8ba75cb8b8ac8c43b9 (diff) | |
download | ffmpeg-streaming-c673a90b0d7c472db36caea0f27dbd2d5f3095ad.zip ffmpeg-streaming-c673a90b0d7c472db36caea0f27dbd2d5f3095ad.tar.gz |
tools: add bisect script
This script works like "git bisect" except that you can
specify with "bisect need ffmpeg|ffplay|ffserver|ffprobe" which tool(s)
are needed for testing a checkout
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/bisect | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/bisect b/tools/bisect new file mode 100755 index 0000000..de43f68 --- /dev/null +++ b/tools/bisect @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +case "$1" in + need) + case $2 in + ffmpeg|ffplay|ffprobe|ffserver) + echo $2.c >> need + ;; + esac + ;; + start|reset) + echo . > need + git bisect $* + ;; + skip) + git bisect $* + ;; + good|bad) + git bisect $* + + until ls `cat need` > /dev/null 2> /dev/null; do + git bisect skip || break + done + ;; +esac |