libretro-super/libretro-build-psp1.sh

20 lines
387 B
Bash
Raw Normal View History

#! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
2014-02-22 16:10:42 +00:00
2015-07-31 04:17:17 +00:00
SCRIPT="${0#./}"
BASE_DIR="${SCRIPT%/*}"
WORKDIR="$PWD"
2014-02-22 16:10:42 +00:00
2015-07-31 04:17:17 +00:00
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"
2014-02-22 16:10:42 +00:00
else
2015-07-31 04:17:17 +00:00
if [[ "$0" != /* ]]; then
# Make the path absolute
BASE_DIR="$WORKDIR/$BASE_DIR"
fi
2014-02-22 16:10:42 +00:00
fi
2015-07-31 04:17:17 +00:00
# The PSP1 build rules have all been moved to libretro-build.sh
platform=psp1 ${BASE_DIR}/libretro-build.sh $@