mirror of
https://github.com/n64decomp/sm64.git
synced 2024-11-14 05:15:09 -05:00
35 lines
507 B
Bash
35 lines
507 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
|
||
|
;;
|
||
|
*)
|
||
|
POSITIONAL+=("$1")
|
||
|
shift
|
||
|
;;
|
||
|
esac
|
||
|
done
|
||
|
set -- "${POSITIONAL[@]}"
|
||
|
|
||
|
BASEROM=baserom.$LANG
|
||
|
MAPFILE="build/$LANG/sm64.map"
|
||
|
MYDUMP=sm64.$LANG.dump
|
||
|
MYIMG=build/$LANG/sm64.$LANG.z64
|
||
|
BASEDUMP=$BASEROM.dump
|
||
|
BASEIMG=$BASEROM.z64
|
||
|
MAKEFLAGS="-j VERSION=$LANG"
|