diff options
Diffstat (limited to 'contrib/build-commits.sh')
-rwxr-xr-x | contrib/build-commits.sh | 12 |
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 |