From 62647b60ab55f8fb382f8eacb2ceb15b8fafc55e Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Mon, 2 Feb 2015 01:29:51 -0800 Subject: [PATCH] multiple cmds for -build and -fetch --- libretro-build.sh | 7 +++++-- libretro-fetch.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libretro-build.sh b/libretro-build.sh index f92fdcb5..3e6bce69 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -91,9 +91,12 @@ echo "STRIP = $STRIP" mkdir -p "$RARCH_DIST_DIR" -if [ $1 ]; then +if [ -n "${1}" ]; then NOBUILD_SUMMARY=1 - $1 + while [ -n "${1}" ]; do + "${1}" + shift + done else build_libretro_2048 build_libretro_4do diff --git a/libretro-fetch.sh b/libretro-fetch.sh index f9446a97..5d878998 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -362,8 +362,11 @@ fetch_libretro_emux() { fetch_git "$REPO_BASE/libretro/emux.git" "libretro-emux" "libretro/Emux" } -if [ ${1} ]; then - ${1} +if [ -n "${1}" ]; then + while [ -n "${1}" ]; do + "${1}" + shift + done else fetch_retroarch fetch_tools