Created
June 9, 2019 18:23
-
-
Save ivand58/58a95b55715d677c1cf89cd4f05b9b24 to your computer and use it in GitHub Desktop.
generates input for cscope with special treatment of the links
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
# Write only the files which are NOT symlinks | |
find `pwd` \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.cc" -o -iname "*.h" \) -and \( -not -type l \) \) -print > cscope.files | |
# Add the target of the symlink for all files matching the right extension, and are symlinks | |
find `pwd` \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.cc" -o -iname "*.h" \) -and -type l \) -exec readlink -f {} \; >> cscope.files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment