aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndrew J Meyer <ajm@leaflabs.com>2013-08-19 13:16:47 -0400
committerAndrew J Meyer <ajm@leaflabs.com>2013-08-19 13:16:47 -0400
commit02173564251454ca5e6e2663715ef8a08229cad9 (patch)
tree3ac4c7d6d6aeaa9badaa09ce8bfca12eebe65d86 /contrib
parentd6ab7ec80e3ed6689998b82aba4ad6273c795dbd (diff)
downloadbasic-hdl-template-02173564251454ca5e6e2663715ef8a08229cad9.tar.gz
basic-hdl-template-02173564251454ca5e6e2663715ef8a08229cad9.zip
changed build-commits to have one argument
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/build-commits.sh12
1 files changed, 9 insertions, 3 deletions
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