fxd: вывод insys_parser/ssdparser.c и ssdparser.c

This commit is contained in:
Kolan Sh 2011-07-08 18:40:30 +04:00
parent 74020a89ad
commit bc96f2d321
1 changed files with 5 additions and 2 deletions

View File

@ -97,8 +97,10 @@ while [ $nfiles != $nparsed ]; do
for f in ${fdeplist[$nparsed]}; do for f in ${fdeplist[$nparsed]}; do
extension=`basename $f | sed 's~.*\.~~g'` extension=`basename $f | sed 's~.*\.~~g'`
f=`echo $f | sed "s~.$extension$~~"` f=`echo $f | sed "s~.$extension$~~"`
for ext in "$extension" c cxx cpp; do extensions=$extension
[[ "$extension" == h || "$extension" == hpp || "$extension" == "hxx" || "$extension" == "hh" ]] && extensions="$extension c cpp cxx cc"
already_in_list=false already_in_list=false
for ext in $extensions; do
for i in `seq 0 $((nfiles))`; do for i in `seq 0 $((nfiles))`; do
if [ "${flist[$i]}" == "$f.$ext" ]; then if [ "${flist[$i]}" == "$f.$ext" ]; then
already_in_list=true already_in_list=true
@ -125,6 +127,7 @@ while [ $nfiles != $nparsed ]; do
[[ "$F" == "" && "$ext" == "$extension" ]] && files_not_found=`echo "$files_not_found\n$f.$ext" | sort -u` [[ "$F" == "" && "$ext" == "$extension" ]] && files_not_found=`echo "$files_not_found\n$f.$ext" | sort -u`
[[ "$F" != "" && "$ext" != "$extension" ]] && break [[ "$F" != "" && "$ext" != "$extension" ]] && break
done done
[ $already_in_list == true ] && continue
done done
let nparsed++ let nparsed++
done done