mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-02 22:14:33 +00:00
Create separate build directories based on version (#1591)
* Create separate build directories based on version * Fix find_unused_asm.sh * Remove find_unused_asm.sh from Jenkinsfile * Revert diff.py * Clarify that gc-eu-mq is not "supported" yet * Revert xmlcreate.py (to be deleted) * Remove gc-eu-mq for now * Add version flags to diff_settings.py and sym_info.py * --version -> --oot-version * Fix --oot-version * Revert adding version flags to tools * Delete find_unused_asm.sh * Revert changes to first_diff.py output in tutorial * Factor out sed usages for spec
This commit is contained in:
parent
1f9c28f370
commit
25ff0a27de
18 changed files with 2500 additions and 2534 deletions
|
@ -10,7 +10,7 @@ gAddressWidth = 18 # if your ld >= 2.40 change this to 10
|
|||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
root_dir = script_dir + "/../"
|
||||
asm_dir = root_dir + "asm/non_matchings/overlays/actors"
|
||||
build_dir = root_dir + "build/"
|
||||
build_dir = root_dir + "build/gc-eu-mq-dbg/"
|
||||
|
||||
def read_rom():
|
||||
with open("baserom.z64", "rb") as f:
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
ls asm/non_matchings/**/*.s > old_list.txt
|
||||
grep GLOBAL_ASM -r src | cut -d '"' -f2 - > cur_list.txt
|
||||
|
||||
grep -F "build/data" spec | cut -d '"' -f2 - > data_list.txt
|
||||
grep -F "build/asm" spec | grep -v -E 'overlays' | cut -d '"' -f2 - >> data_list.txt
|
||||
|
||||
ls data/**/*.s > old_data_list.txt
|
||||
ls asm/*.s >> old_data_list.txt
|
||||
|
||||
while read p; do
|
||||
tmp=${p%.o}.s
|
||||
echo ${tmp#build/} >> list.txt
|
||||
done < data_list.txt
|
||||
|
||||
comm -3 <(sort old_list.txt) <(sort cur_list.txt) > diff.txt
|
||||
comm -3 <(sort old_data_list.txt) <(sort list.txt) >> diff.txt
|
||||
|
||||
rm old_list.txt cur_list.txt old_data_list.txt data_list.txt list.txt
|
||||
|
||||
if [ "$1" = "-d" ]
|
||||
then
|
||||
if [ -s diff.txt ]
|
||||
then
|
||||
rm $(cat diff.txt)
|
||||
fi
|
||||
rm diff.txt
|
||||
else
|
||||
if [ -s diff.txt ]
|
||||
then
|
||||
cat diff.txt
|
||||
rm diff.txt
|
||||
exit 55
|
||||
else
|
||||
rm diff.txt
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue