Removed old branches from git-push-all.sh
[barry.git] / sequence-buildtest.sh
blob42730347dfc6eab3f09e0aba91a06a4e764dd6d8
1 #!/bin/sh
3 set -e
5 if [ -z "$1" ] ; then
6 echo "Usage:"
7 echo " sequence-buildtest.sh <gitrange>"
8 echo
9 echo "Example:"
10 echo " sequence-buildtest.sh master..desktop"
11 echo
12 exit 1
15 if [ ! -f ./buildtest.sh ] ; then
16 echo "Please run this from inside the barry/test directory."
17 exit 1
20 DONEFILE="/tmp/sequence-buildtest-done.txt"
22 if [ -f "$DONEFILE" ] ; then
23 echo "NOTE: $DONEFILE already exists..."
24 echo "Will continue with current status in 5 seconds..."
25 sleep 5s
28 COMMITS=$(git rev-list --reverse "$1")
30 for commit in $COMMITS ; do
31 if ! grep "$commit" "$DONEFILE" ; then
32 git checkout "$commit"
33 ./buildtest.sh
34 echo "$commit" >> "$DONEFILE"
35 else
36 echo "Skipping: $commit..."
38 done