contrib/artwork: New OpenEmbedded logo artwork replacing old logo SVGs.
[vuplus_openembedded] / contrib / mtn-bisect.sh
1 #!/bin/bash
2
3 # the revision that we noticed does not longer build
4 LATEST_BAD_REV=$1
5
6 # an older revision that is known to build
7 LAST_KNOWN_GOOD_REV=$2
8
9 # count the number of commits 
10 COUNT=`mtn log --brief --no-merges --no-graph --to p:$LAST_KNOWN_GOOD_REV --from $LATEST_BAD_REV | tee /tmp/candidates.txt | wc -l`
11
12 echo $COUNT commits
13
14 # if COUNT == 1 stop
15
16 # make binary sections
17 COUNT=$(($(($COUNT + 1)) / 2))
18
19 CANDIDATE_REV=`cat /tmp/candidates.txt | head -n $COUNT | tail -n 1 | sed -e 's@\([a-f0-9]*\) .*@\1@'`
20
21 echo $CANDIDATE_REV
22
23 echo mtn up -r $CANDIDATE_REV
24 mtn up -r $CANDIDATE_REV
25
26