2015-02-17 03:19:30 +00:00
|
|
|
#! /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%/*}"
|
2015-02-21 19:38:52 +00:00
|
|
|
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 $@
|