Created
December 7, 2010 16:15
-
-
Save l0b0/731975 to your computer and use it in GitHub Desktop.
Find files missing from the local Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -print0 | \ | |
sort --zero-terminated | \ | |
while IFS= read -rd $'\0' path | |
do | |
grep "$(basename -- "${path:2}")" -- Makefile >/dev/null || echo "Could not find $path" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment