Skip to content

Commit

Permalink
checkout-deps: change mock sdk download to be optional, using same sd…
Browse files Browse the repository at this point in the history
…k list
  • Loading branch information
psychonic authored and nosoop committed Jul 18, 2024
1 parent 273df3c commit 17a1899
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/checkout-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,27 @@ else
cd ..
fi

want_mock_sdk=0
for sdk in "${sdks[@]}"
do
if [ "$sdk" == "mock" ]; then
want_mock_sdk=1
continue
fi
repo=hl2sdk-proxy-repo
origin="https://github.com/alliedmodders/hl2sdk"
name=hl2sdk-$sdk
branch=$sdk
checkout
done

if [ $want_mock_sdk -eq 1 ]; then
name=hl2sdk-mock
branch=master
repo="https://github.com/alliedmodders/hl2sdk-mock"
origin=
checkout
fi

python_cmd=`command -v python3`
if [ -z "$python_cmd" ]; then
Expand Down

0 comments on commit 17a1899

Please sign in to comment.