2015-02-16 19:19:30 -08:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2014-02-22 17:10:42 +01:00
|
|
|
|
2015-07-31 06:17:17 +02:00
|
|
|
SCRIPT="${0#./}"
|
|
|
|
BASE_DIR="${SCRIPT%/*}"
|
2015-02-21 11:38:52 -08:00
|
|
|
WORKDIR="$PWD"
|
2014-02-22 17:10:42 +01:00
|
|
|
|
2015-07-31 06:17:17 +02:00
|
|
|
if [ "$BASE_DIR" = "$SCRIPT" ]; then
|
|
|
|
BASE_DIR="$WORKDIR"
|
2014-02-22 17:10:42 +01:00
|
|
|
else
|
2015-07-31 06:17:17 +02:00
|
|
|
if [[ "$0" != /* ]]; then
|
|
|
|
# Make the path absolute
|
|
|
|
BASE_DIR="$WORKDIR/$BASE_DIR"
|
|
|
|
fi
|
2014-02-22 17:10:42 +01:00
|
|
|
fi
|
2015-07-31 06:17:17 +02:00
|
|
|
|
|
|
|
platform=psp1 ${BASE_DIR}/libretro-build.sh $@
|