Blame view
misc/maintenance/find_missing_dependencies.sh
456 Bytes
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/bash echo "$0: finding missing inter-directory dependencies in src/Makefile" cd src for x in */Makefile; do dir=$(dirname $x); for dependency in $(perl -ape 's/\\ //;' <$x | grep ADDLIBS | awk '{$1="";$2="";print;}' | perl -ane 'print "$1 " while ( $_ =~ m|\.\./([^/]+)/|g ); '); do if ! perl -ape 's/\\ //;' <Makefile | grep -E "\b$dir\b.*:" | grep -w $dependency >/dev/null; then echo "$dir: $dependency"; fi done done |