checkdefs.sh: for DEFs, also handle 'include ...', use 'find -L' (follow symlinks).

git-svn-id: https://svn.eduke32.com/eduke32@4405 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-03-30 13:53:06 +00:00
parent 0ae00ba860
commit 99ddb32055

View file

@ -46,7 +46,10 @@ fi
if [ -z $docon ]; then
# def
files=$(grep -E "\".*\..*\"" "$deffn" | sed 's/.*"\(.*\..*\)".*/\1/g')
files=$(grep -E "\"[^ ]*\..*\"" "$deffn" | sed 's/.*"\(.*\..*\)".*/\1/g')
files2=$(grep -E '^include ' "$deffn" | sed 's/^include \(.*\)\r/\1/g') # XXX: \r
files="$files $files2"
else
# con... this is awful
files=$(grep -E -i '(include *.*\.con)|(definesound.*(voc|wav|ogg))|(definelevelname.*\.map)' "$deffn" |
@ -55,7 +58,7 @@ else
s/.*[ \t]([^ \t].+\.([mM][aA][pP])).*/\1/g;')
fi
exfiles=$(find "$thedir" -type f)
exfiles=$(find -L "$thedir" -type f)
sedcmd=""