123456789101112131415161718192021 |
- #!/bin/bash
- #
- # rebuild-environment.sh
- #
- # Rebuilds the benchmarking environment.
- #
- cd $TFB_REPOPARENT
- git clone -b $TFB_REPOBRANCH $TFB_REPOURI
- cd $TFB_REPOPARENT/$TFB_REPONAME
- #
- # Make the results directory if it doesn't exist.
- #
- # save the current git commit to results/.commit
- #
- echo "Saving current git commit to results directory..."
- GIT_COMMIT=$(git rev-parse HEAD)
- mkdir -p results
- echo $GIT_COMMIT > results/.commit
- echo "Using commit: " $GIT_COMMIT
|