Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2012/07/03 20:53:26... | ... |
@@ -2,6 +2,23 @@ |
2 | 2 |
|
3 | 3 |
set -e |
4 | 4 |
|
5 |
+if test "bisect" = "`basename $0`" ; then |
|
6 |
+ echo WARNING, trying to execute tools/bisect directly this cannot work as |
|
7 |
+ echo the script itself would not be available in older checkouts |
|
8 |
+ echo please use tools/ffbisect |
|
9 |
+ git show master:tools/bisect > tools/ffbisect |
|
10 |
+ chmod u+x tools/ffbisect |
|
11 |
+ exit 1 |
|
12 |
+fi |
|
13 |
+ |
|
14 |
+if ! git show master:tools/bisect | diff - tools/ffbisect > /dev/null ; then |
|
15 |
+ echo updating tools/ffbisect script to HEAD. |
|
16 |
+ git show master:tools/bisect > tools/ffbisect |
|
17 |
+ chmod u+x tools/ffbisect |
|
18 |
+ tools/ffbisect $* |
|
19 |
+ exit 0 |
|
20 |
+fi |
|
21 |
+ |
|
5 | 22 |
case "$1" in |
6 | 23 |
need) |
7 | 24 |
case $2 in |