mirror of https://github.com/zeldaret/mm.git
18 lines
317 B
Bash
Executable File
18 lines
317 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# < 2 ]]; then
|
|
echo "Usage: $0 orig.o new.o [flags]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -f $1 -o ! -f $2 ]; then
|
|
echo Source files not readable
|
|
exit 1
|
|
fi
|
|
|
|
INPUT1="$1"
|
|
INPUT2="$2"
|
|
shift
|
|
shift
|
|
wdiff -n <(python3 ./src/objdump.py "$INPUT1" "$@") <(python3 ./src/objdump.py "$INPUT2" "$@") | colordiff | less -Ric
|