2015-02-16 19:19:30 -08:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-04-30 17:37:28 +02:00
|
|
|
|
2015-07-29 21:40:35 +02:00
|
|
|
SCRIPT="${0#./}"
|
|
|
|
BASE_DIR="${SCRIPT%/*}"
|
2015-02-21 11:38:52 -08:00
|
|
|
WORKDIR="$PWD"
|
2013-04-30 17:37:28 +02:00
|
|
|
|
2015-07-29 21:40:35 +02:00
|
|
|
if [ "$BASE_DIR" = "$SCRIPT" ]; then
|
|
|
|
BASE_DIR="$WORKDIR"
|
2013-05-03 17:22:09 +02:00
|
|
|
else
|
2015-07-29 21:40:35 +02:00
|
|
|
if [[ "$0" != /* ]]; then
|
|
|
|
# Make the path absolute
|
|
|
|
BASE_DIR="$WORKDIR/$BASE_DIR"
|
|
|
|
fi
|
2013-05-03 17:22:09 +02:00
|
|
|
fi
|
2015-07-29 21:40:35 +02:00
|
|
|
|
|
|
|
platform=qnx ${BASE_DIR}/libretro-build.sh $@
|