aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndrew J Meyer <ajm@leaflabs.com>2013-08-19 13:04:28 -0400
committerAndrew J Meyer <ajm@leaflabs.com>2013-08-19 13:04:28 -0400
commitd6ab7ec80e3ed6689998b82aba4ad6273c795dbd (patch)
treea7ecc117a6f3fb7c84590b8b326b2aa3c8036699 /contrib
parentde926b9a6f63cdf5e032aec5f115d9ba7bb7afc6 (diff)
downloadbasic-hdl-template-d6ab7ec80e3ed6689998b82aba4ad6273c795dbd.tar.gz
basic-hdl-template-d6ab7ec80e3ed6689998b82aba4ad6273c795dbd.zip
added build commits script
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