2019-08-25 06:46:40 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
LANG=us
|
|
|
|
|
|
|
|
POSITIONAL=()
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
|
|
case "$1" in
|
|
|
|
-j)
|
|
|
|
LANG=jp
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
-u)
|
|
|
|
LANG=us
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
-e)
|
|
|
|
LANG=eu
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
POSITIONAL+=("$1")
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
set -- "${POSITIONAL[@]}"
|
|
|
|
|
|
|
|
BASEROM=baserom.$LANG
|
2019-09-01 21:50:50 +02:00
|
|
|
MAPFILE="build/$LANG/sm64.$LANG.map"
|
2019-08-25 06:46:40 +02:00
|
|
|
MYDUMP=sm64.$LANG.dump
|
|
|
|
MYIMG=build/$LANG/sm64.$LANG.z64
|
|
|
|
BASEDUMP=$BASEROM.dump
|
|
|
|
BASEIMG=$BASEROM.z64
|
|
|
|
MAKEFLAGS="-j VERSION=$LANG"
|