From 02173564251454ca5e6e2663715ef8a08229cad9 Mon Sep 17 00:00:00 2001 From: Andrew J Meyer Date: Mon, 19 Aug 2013 13:16:47 -0400 Subject: changed build-commits to have one argument --- contrib/build-commits.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/build-commits.sh b/contrib/build-commits.sh index bc44d5d..5a3a775 100755 --- a/contrib/build-commits.sh +++ b/contrib/build-commits.sh @@ -1,9 +1,12 @@ #!/bin/bash -echo "Usage: $0 first-commit last-commit (e.g. $0 97de5 HEAD)" +echo "Usage: $0 GIT-RANGE (e.g. $0 97de5..HEAD)" +COMMITS=$(git log --oneline $1 | awk '{print $1;}') -for commit in $( git log --oneline $1..$2 | awk '{print $1;}' ); do +echo operating on: $COMMITS + +for commit in $COMMITS; do echo Building Commit: $commit echo Creating directory build-$commit @@ -28,4 +31,7 @@ for commit in $( git log --oneline $1..$2 | awk '{print $1;}' ); do echo Finished building $commit done -echo "Done!" \ No newline at end of file +echo Checking out master +git checkout master + +echo Done! \ No newline at end of file -- cgit v1.2.3