[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / third-party / update_benchmark.sh
blob047efd945a86b5d62a6816ac7f6ca5d949c1d688
1 #!/bin/bash
3 echo "This script deletes `benchmark`, clones it from github, together"
4 echo "with its dependencies. It then removes .git* files and dirs."
5 echo "NOTE!!!"
6 echo "Please double-check the benchmark github wiki for any changes"
7 echo "to dependencies. Currently, these are limited to googletest."
8 echo
9 read -p "Press a key to continue, or Ctrl+C to cancel"
11 rm -rf benchmark
12 git clone https://github.com/google/benchmark.git
13 rm -rf benchmark/.git*
14 find benchmark/ -name BUILD -delete
15 find benchmark/ -name BUILD.bazel -delete
16 find benchmark/ -name WORKSPACE -delete