mirror of https://github.com/zeldaret/mm.git
Add slightly better diffing tool
This commit is contained in:
parent
53ebb015f3
commit
5fcbe0a483
|
|
@ -14,4 +14,5 @@ __pychahe__/*
|
|||
*.pyc
|
||||
test.txt
|
||||
*.xlsx
|
||||
src/test.c
|
||||
src/test.c
|
||||
*.dump
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
MIPS_BINUTILS="mips-linux-gnu-"
|
||||
|
||||
OBJDUMP="${MIPS_BINUTILS}objdump -D -z -mmips -EB -j .text"
|
||||
|
||||
FORMATTER="sed '/^0/!s/.*://'"
|
||||
|
||||
$OBJDUMP build/src/test.o | sed '1,6d; /^0/!s/.*://' > test.dump
|
||||
$OBJDUMP $1 | sed '1,6d; /^0/!s/.*://' > comp.dump
|
||||
diff -y test.dump comp.dump > diff.dump
|
||||
rm test.dump comp.dump
|
||||
Loading…
Reference in New Issue