diff options
author | scnorton <scnorton@biociphers.org> | 2017-12-18 11:27:43 -0500 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-12-18 11:27:43 -0500 |
commit | 3ef90edf47f9a89b05a3e8a0a7d02b38d2691a58 (patch) | |
tree | 67d3cff4aad5b4d59e5c7a4c9057688a728a13ef | |
parent | 466031e365a961c9138d972a524db916570db6b3 (diff) |
Add some potentially useful scripts
de_before.sh: Set up the environment to build German Ruby. WARNING: Do not commit in this state unless you know what you are doing.
de_after.sh: Revert the German build environment to the English (default) environment. After executing this script, it will be safe to commit changes. WARNING: This discards any changes to asm/, data/, and graphics/.
asmdiff_de.sh: Like asmdiff.sh but for the German build environment. Requires baserom_de.gba with SHA1 sum = 1c2a53332382e14dab8815e3a6dd81ad89534050.
build_tools_mac.sh: Like build_tools.sh but for OS X environments experiencing problems with Homebrew's g++.
clean_tools.sh: Use this to clean the tools directories if you want to cross-compile or recompile. Does not touch agbcc.
-rwxr-xr-x | asmdiff_de.sh | 7 | ||||
-rwxr-xr-x | build_tools_mac.sh | 8 | ||||
-rwxr-xr-x | clean_tools.sh | 8 | ||||
-rw-r--r-- | de_after.sh | 1 | ||||
-rw-r--r-- | de_before.sh | 4 |
5 files changed, 28 insertions, 0 deletions
diff --git a/asmdiff_de.sh b/asmdiff_de.sh new file mode 100755 index 000000000..aa42daa5e --- /dev/null +++ b/asmdiff_de.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +OBJDUMP="$DEVKITARM/bin/arm-none-eabi-objdump -D -bbinary -marmv4t -Mforce-thumb" +OPTIONS="--start-address=$(($1)) --stop-address=$(($1 + $2))" +$OBJDUMP $OPTIONS baserom_de.gba > baserom_de.dump +$OBJDUMP $OPTIONS pokeruby_de.gba > pokeruby_de.dump +diff baserom_de.dump pokeruby_de.dump diff --git a/build_tools_mac.sh b/build_tools_mac.sh new file mode 100755 index 000000000..126f9f023 --- /dev/null +++ b/build_tools_mac.sh @@ -0,0 +1,8 @@ +#!/bin/sh +make -C tools/gbagfx CXX=clang++ +make -C tools/scaninc CXX=clang++ +make -C tools/preproc CXX=clang++ +make -C tools/bin2c CXX=clang++ +make -C tools/rsfont CXX=clang++ +make -C tools/aif2pcm CXX=clang++ +make -C tools/ramscrgen CXX=clang++ diff --git a/clean_tools.sh b/clean_tools.sh new file mode 100755 index 000000000..7062a2124 --- /dev/null +++ b/clean_tools.sh @@ -0,0 +1,8 @@ +#!/bin/sh +make -C tools/gbagfx clean +make -C tools/scaninc clean +make -C tools/preproc clean +make -C tools/bin2c clean +make -C tools/rsfont clean +make -C tools/aif2pcm clean +make -C tools/ramscrgen clean diff --git a/de_after.sh b/de_after.sh new file mode 100644 index 000000000..8c39f765a --- /dev/null +++ b/de_after.sh @@ -0,0 +1 @@ +git checkout override.mk asm/ data/ graphics diff --git a/de_before.sh b/de_before.sh new file mode 100644 index 000000000..a68790143 --- /dev/null +++ b/de_before.sh @@ -0,0 +1,4 @@ +cp override-de.mk +rsync -avhI asm-de/ asm/ +rsync -avhI data-de/ data/ +rsync -avhI graphics-de/ graphics/ |