From dadfd2a525bb8d6be4fe7bef8d803efa10371f3a Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Sat, 7 Jul 2012 14:49:44 +0200
Subject: [PATCH] tools/bisect: rename to tools/bisect-create

Idea-by: Alexander Strasser
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 tools/{bisect => bisect-create} | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
 rename tools/{bisect => bisect-create} (61%)

diff --git a/tools/bisect b/tools/bisect-create
similarity index 61%
rename from tools/bisect
rename to tools/bisect-create
index f03e47cce47..6442b5cbe36 100755
--- a/tools/bisect
+++ b/tools/bisect-create
@@ -2,18 +2,16 @@
 
 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/ffbisect
-    git show master:tools/bisect > tools/ffbisect
+if test "bisect-create" = "`basename $0`" ; then
+    echo tools/ffbisect created
+    git show master:tools/bisect-create > tools/ffbisect
     chmod u+x tools/ffbisect
     exit 1
 fi
 
-if ! git show master:tools/bisect | diff - tools/ffbisect > /dev/null ; then
+if ! git show master:tools/bisect-create | diff - tools/ffbisect > /dev/null ; then
     echo updating tools/ffbisect script to HEAD.
-    git show master:tools/bisect > tools/ffbisect
+    git show master:tools/bisect-create > tools/ffbisect
     chmod u+x tools/ffbisect
     tools/ffbisect $*
     exit 0
-- 
GitLab