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