From d6ab7ec80e3ed6689998b82aba4ad6273c795dbd Mon Sep 17 00:00:00 2001 From: Andrew J Meyer Date: Mon, 19 Aug 2013 13:04:28 -0400 Subject: added build commits script --- contrib/build-commits.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 contrib/build-commits.sh diff --git a/contrib/build-commits.sh b/contrib/build-commits.sh new file mode 100755 index 0000000..bc44d5d --- /dev/null +++ b/contrib/build-commits.sh @@ -0,0 +1,31 @@ +#!/bin/bash + + +echo "Usage: $0 first-commit last-commit (e.g. $0 97de5 HEAD)" + +for commit in $( git log --oneline $1..$2 | awk '{print $1;}' ); do + echo Building Commit: $commit + + echo Creating directory build-$commit + rm -r build-$commit + mkdir build-$commit + + echo cleaning... + make clean >> ./build-$commit/out.log + + echo checking out $commit + git checkout $commit >> ./build-$commit/out.log + + echo cleaning... + make clean >> ./build-$commit/out.log + + echo building... tail ./build-$commit/out.log to observe + make >> ./build-$commit/out.log + + echo copying result to ./build-$commit + cp -r build ./build-$commit + + echo Finished building $commit +done + +echo "Done!" \ No newline at end of file -- cgit v1.2.3