dotfiles/.bin/port-shlib-compare

10 lines
191 B
Bash
Executable File

#!/bin/sh -xe
f1=$(basename "$1").txt
f2=$(basename "$2").txt
nm -g "$1" | cut -c10- | grep -e^T > "/tmp/$f1"
nm -g "$2" | cut -c10- | grep -e^T > "/tmp/$f2"
vimdiff "/tmp/$f1" "/tmp/$f2"