rebuild-environment.sh 461 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. # rebuild-environment.sh
  4. #
  5. # Rebuilds the benchmarking environment.
  6. #
  7. cd $TFB_REPOPARENT
  8. git clone -b $TFB_REPOBRANCH $TFB_REPOURI
  9. cd $TFB_REPOPARENT/$TFB_REPONAME
  10. #
  11. # Make the results directory if it doesn't exist.
  12. #
  13. # save the current git commit to results/.commit
  14. #
  15. echo "Saving current git commit to results directory..."
  16. GIT_COMMIT=$(git rev-parse HEAD)
  17. mkdir -p results
  18. echo $GIT_COMMIT > results/.commit
  19. echo "Using commit: " $GIT_COMMIT