Adding wget support to fetch scripts
This commit is contained in:
24
thirdparty/fetch-thirdparty-deps.sh
vendored
24
thirdparty/fetch-thirdparty-deps.sh
vendored
@@ -81,19 +81,33 @@ fi
|
||||
|
||||
if [ ! -f SDL2-CS.dll -o ! -f SDL2-CS.dll.config ]; then
|
||||
echo "Fetching SDL2-CS from GitHub."
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll.config
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll.config
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll.config
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f OpenAL-CS.dll -o ! -f OpenAL-CS.dll.config ]; then
|
||||
echo "Fetching OpenAL-CS from GitHub."
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll.config
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll.config
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20151227/OpenAL-CS.dll.config
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f Eluant.dll ]; then
|
||||
echo "Fetching Eluant from GitHub."
|
||||
curl -s -L -O https://github.com/OpenRA/Eluant/releases/download/20160124/Eluant.dll
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/Eluant/releases/download/20160124/Eluant.dll
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/Eluant/releases/download/20160124/Eluant.dll
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f rix0rrr.BeaconLib.dll ]; then
|
||||
|
||||
Reference in New Issue
Block a user