diff --git a/libretro-build-libnx.sh b/libretro-build-libnx.sh old mode 100644 new mode 100755 index e69de29b..3abf535b --- a/libretro-build-libnx.sh +++ b/libretro-build-libnx.sh @@ -0,0 +1,24 @@ +#! /usr/bin/env bash +# vim: set ts=3 sw=3 noet ft=sh : bash + +SCRIPT="${0#./}" +BASE_DIR="${SCRIPT%/*}" +WORKDIR="$PWD" + +if [ "$BASE_DIR" = "$SCRIPT" ]; then + BASE_DIR="$WORKDIR" +else + if [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" + fi +fi + +if [[ -z "$1" ]]; then +WANT_CORES=$(grep -Eo '^[^ ]+' ${BASE_DIR}/recipes/nintendo/libnx) + +else +WANT_CORES="$@" +fi + +platform=libnx ${BASE_DIR}/libretro-build.sh ${WANT_CORES}