From dce3f57b3ed8bf43bf15e8cd2a396b8efae20240 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 1 Aug 2017 10:05:29 -0700 Subject: [PATCH] (libretro-build.sh) Minor cleanup --- libretro-build.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libretro-build.sh b/libretro-build.sh index c57a4b90..bee58eaf 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -7,11 +7,9 @@ WORKDIR="$PWD" if [ "$BASE_DIR" = "$SCRIPT" ]; then BASE_DIR="$WORKDIR" -else - if [[ "$0" != /* ]]; then - # Make the path absolute - BASE_DIR="$WORKDIR/$BASE_DIR" - fi +elif [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" fi . "$BASE_DIR/libretro-config.sh" @@ -21,9 +19,7 @@ if [ -z "$RARCH_DIST_DIR" ]; then RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" fi -if [ -z "$JOBS" ]; then - JOBS=7 -fi +JOBS=${JOBS:-7} if [ "$HOST_CC" ]; then CC="${HOST_CC}-gcc" @@ -75,13 +71,11 @@ fi FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET - echo "CC = $CC" echo "CXX = $CXX" echo "CXX11 = $CXX11" echo "STRIP = $STRIP" - . "$BASE_DIR/libretro-build-common.sh" # These are cores which only work properly right