Mercurial > hg > pmhd
annotate ffmpeg/tools/bisect-create @ 13:844d341cf643 tip
Back up before ISMIR
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Thu, 31 Oct 2013 13:17:06 +0000 |
parents | f445c3017523 |
children |
rev | line source |
---|---|
yading@11 | 1 #!/bin/sh |
yading@11 | 2 |
yading@11 | 3 set -e |
yading@11 | 4 |
yading@11 | 5 if test "bisect-create" = "`basename $0`" ; then |
yading@11 | 6 echo tools/ffbisect created |
yading@11 | 7 git show master:tools/bisect-create > tools/ffbisect |
yading@11 | 8 chmod u+x tools/ffbisect |
yading@11 | 9 exit 1 |
yading@11 | 10 fi |
yading@11 | 11 |
yading@11 | 12 if ! git show master:tools/bisect-create | diff - tools/ffbisect > /dev/null ; then |
yading@11 | 13 echo updating tools/ffbisect script to HEAD. |
yading@11 | 14 git show master:tools/bisect-create > tools/ffbisect |
yading@11 | 15 chmod u+x tools/ffbisect |
yading@11 | 16 tools/ffbisect $* |
yading@11 | 17 exit 0 |
yading@11 | 18 fi |
yading@11 | 19 |
yading@11 | 20 case "$1" in |
yading@11 | 21 need) |
yading@11 | 22 case $2 in |
yading@11 | 23 ffmpeg|ffplay|ffprobe|ffserver) |
yading@11 | 24 echo $2.c >> tools/bisect.need |
yading@11 | 25 ;; |
yading@11 | 26 esac |
yading@11 | 27 ;; |
yading@11 | 28 start|reset) |
yading@11 | 29 echo . > tools/bisect.need |
yading@11 | 30 git bisect $* |
yading@11 | 31 ;; |
yading@11 | 32 skip) |
yading@11 | 33 git bisect $* |
yading@11 | 34 ;; |
yading@11 | 35 good|bad) |
yading@11 | 36 git bisect $* |
yading@11 | 37 |
yading@11 | 38 until ls `cat tools/bisect.need` > /dev/null 2> /dev/null; do |
yading@11 | 39 git bisect skip || break |
yading@11 | 40 done |
yading@11 | 41 ;; |
yading@11 | 42 run) |
yading@11 | 43 shift # remove "run" from arguments |
yading@11 | 44 git bisect run sh -c "ls \`cat tools/bisect.need\` > /dev/null 2> /dev/null || exit 125; \"\$@\"" sh "$@" |
yading@11 | 45 ;; |
yading@11 | 46 esac |