2015-02-17 03:19:30 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-02-10 15:01:43 +00:00
|
|
|
|
2017-09-17 15:40:52 +00:00
|
|
|
SCRIPT="${0#./}"
|
|
|
|
BASE_DIR="${SCRIPT%/*}"
|
|
|
|
WORKDIR="$PWD"
|
2013-02-10 15:01:43 +00:00
|
|
|
|
2017-09-17 15:40:52 +00:00
|
|
|
if [ "$BASE_DIR" = "$SCRIPT" ]; then
|
|
|
|
BASE_DIR="$WORKDIR"
|
2013-05-03 15:22:09 +00:00
|
|
|
else
|
2017-09-17 15:40:52 +00:00
|
|
|
if [[ "$0" != /* ]]; then
|
|
|
|
# Make the path absolute
|
|
|
|
BASE_DIR="$WORKDIR/$BASE_DIR"
|
|
|
|
fi
|
2013-05-03 15:22:09 +00:00
|
|
|
fi
|
2017-09-17 15:40:52 +00:00
|
|
|
|
2017-09-17 15:42:12 +00:00
|
|
|
platform=xbox1 ${BASE_DIR}/libretro-build.sh $@
|