mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
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:
parent
0ae00ba860
commit
99ddb32055
1 changed files with 5 additions and 2 deletions
|
@ -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=""
|
||||
|
||||
|
|
Loading…
Reference in a new issue