aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/build-commits.sh31
1 files changed, 31 insertions, 0 deletions
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