mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com> Co-authored-by: Eldred Habert <eldredhabert0@gmail.com>
24 lines
665 B
Bash
Executable File
24 lines
665 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "Fetching test dependency repositories"
|
|
|
|
fetch_downstream() { # owner/repo shallow-since commit
|
|
if [ ! -d ${1##*/} ]; then
|
|
git clone https://github.com/$1.git --shallow-since=$2 --single-branch
|
|
fi
|
|
pushd ${1##*/}
|
|
git checkout -f $3
|
|
if [ -f ../patches/${1##*/}.patch ]; then
|
|
git apply --ignore-whitespace ../patches/${1##*/}.patch
|
|
fi
|
|
popd
|
|
}
|
|
|
|
fetch_downstream pret/pokecrystal 2022-09-29 70a3ec1accb6de1c1c273470af0ddfa2edc1b0a9
|
|
fetch_downstream pret/pokered 2022-09-29 2b52ceb718b55dce038db24d177715ae4281d065
|
|
fetch_downstream AntonioND/ucity 2022-04-20 d8878233da7a6569f09f87b144cb5bf140146a0f
|