[FFmpeg-devel] [PATCH 1/2] tool/bisect: add some magic to make the bisect tool be useable when its not part of a checkout
Michael Niedermayer
michaelni at gmx.at
Tue Jul 3 14:10:55 CEST 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
.gitignore | 1 +
tools/bisect | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/.gitignore b/.gitignore
index e8b021d..6a719a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,4 +60,5 @@ tools/pktdumper
tools/probetest
tools/qt-faststart
tools/trasher
+tools/bisec
version.h
diff --git a/tools/bisect b/tools/bisect
index de43f68..cdf3226 100755
--- a/tools/bisect
+++ b/tools/bisect
@@ -2,6 +2,23 @@
set -e
+if test "bisect" = "`basename $0`" ; then
+ echo WARNING, trying to execute tools/bisect directly this cannot work as
+ echo the script itself would not be available in older checkouts
+ echo please use tools/bisec
+ git show master:tools/bisect > tools/bisec
+ chmod u+x tools/bisec
+ exit 1
+fi
+
+if ! git show master:tools/bisect | diff - tools/bisec > /dev/null ; then
+ echo updating tools/bisec script to HEAD.
+ git show master:tools/bisect > tools/bisec
+ chmod u+x tools/bisec
+ tools/bisec $*
+ exit 0
+fi
+
case "$1" in
need)
case $2 in
--
1.7.9.5
More information about the ffmpeg-devel
mailing list