mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
40 lines
649 B
Bash
40 lines
649 B
Bash
#!/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
|
|
;;
|
|
-a)
|
|
# Use an alternate dump file as the base.
|
|
shift
|
|
ALT_DUMP="$1"
|
|
shift
|
|
;;
|
|
*)
|
|
POSITIONAL+=("$1")
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
set -- "${POSITIONAL[@]}"
|
|
|
|
BASEROM=baserom.$LANG
|
|
MAPFILE="build/$LANG/sm64.$LANG.map"
|
|
MYDUMP=sm64.$LANG.dump
|
|
MYIMG=build/$LANG/sm64.$LANG.z64
|
|
BASEDUMP="${ALT_DUMP:-${BASEROM}.dump}"
|
|
BASEIMG=$BASEROM.z64
|
|
MAKEFLAGS="-j VERSION=$LANG"
|