mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 20:14:22 +00:00
Remove conditional fetching from libretro-fetch.sh
The partially-finished use of can_build_module() had to be pulled from libretro-fetch because how it works has changed a little bit. Don't worry too much though because libretro-super.sh already fetches using the new setup. It's just not quite ready yet.
This commit is contained in:
parent
0a1f95a089
commit
81a44fdfa9
@ -101,13 +101,11 @@ libretro_players="retroarch"
|
|||||||
libretro_devkits="devkit"
|
libretro_devkits="devkit"
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
fetch_devel=""
|
|
||||||
no_more_args=""
|
no_more_args=""
|
||||||
while [ -n "$1" ]; do
|
while [ -n "$1" ]; do
|
||||||
if [[ "$1" = -* && -z "$no_more_args" ]]; then
|
if [[ "$1" = -* && -z "$no_more_args" ]]; then
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--) no_more_args=1 ;;
|
--) no_more_args=1 ;;
|
||||||
--devel) fetch_devel=1 ;;
|
|
||||||
--cores) fetch_cores="$libretro_cores" ;;
|
--cores) fetch_cores="$libretro_cores" ;;
|
||||||
--devkit) fetch_devkits="$libretro_devkits" ;;
|
--devkit) fetch_devkits="$libretro_devkits" ;;
|
||||||
--players) fetch_players="$libretro_players" ;;
|
--players) fetch_players="$libretro_players" ;;
|
||||||
@ -124,7 +122,6 @@ if [ -n "$1" ]; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
# Make libretro-fetch.sh with no args behave traditionally by default
|
# Make libretro-fetch.sh with no args behave traditionally by default
|
||||||
fetch_devel=1
|
|
||||||
fetch_cores="$libretro_cores"
|
fetch_cores="$libretro_cores"
|
||||||
fetch_players="retroarch"
|
fetch_players="retroarch"
|
||||||
fetch_devkit="devkit"
|
fetch_devkit="devkit"
|
||||||
@ -139,7 +136,5 @@ for a in $fetch_devkits; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
for a in $fetch_cores; do
|
for a in $fetch_cores; do
|
||||||
if [ -n "$fetch_devel" ] || can_build_module "$a"; then
|
libretro_fetch "${a%%:*}"
|
||||||
libretro_fetch "${a%%:*}"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user