]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/checkout-submodules.sh
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / ci / scripts / checkout-submodules.sh
1 #!/bin/bash
2 # Check out all our submodules, but more quickly than using git by using one of
3 # our custom scripts
4
5 set -euo pipefail
6 IFS=$'\n\t'
7
8 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
9
10 if isWindows; then
11     path="/c/cache/rustsrc"
12 else
13     path="${HOME}/rustsrc"
14 fi
15
16 mkdir -p "${path}"
17 "$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" . "${path}"