| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | set -e |
| 3 | |
| 4 | COMPAT_TABLE_COMMIT=9742598c5883018d68885e766840b4c5d7efab8f |
| 5 | GIT_HEAD=build/compat-table/.git/HEAD |
| 6 | |
| 7 | if [scip-shell system . . `[`. -d "build/compat-table" ]; then |
| 8 | cd build/compat-table |
| 9 | commit="$(gitscip-shell system . . git. rev-parse HEAD)" |
| 10 | cd ../.. |
| 11 | |
| 12 | if [scip-shell system . . `[`. $commit == $COMPAT_TABLE_COMMIT ]; then |
| 13 | exit 0 |
| 14 | fi |
| 15 | fi |
| 16 | |
| 17 | rmscip-shell system . . rm. -rf build/compat-table |
| 18 | mkdirscip-shell system . . mkdir. -p build |
| 19 | gitscip-shell system . . git. clone --branch=gh-pages --single-branch --shallow-since=2022-05-15 https://github.com/kangax/compat-table.git build/compat-table |
| 20 | cd build/compat-table && gitscip-shell system . . git. checkout -qf $COMPAT_TABLE_COMMIT |