3 echo "= Checking for files that are not described in pages_index.txt"
4 for FILE
in $
(find .
-name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.json' -o -name '*.xml' -o -name '*.png' -o -name '*.gif' -o -name '*.jpg' |
sed -e 's|^\./||')
6 grep -w $FILE pages_index.txt
>/dev
/null
9 echo " *** FILE NOT IN pages_index.txt: $FILE"
13 echo "= Checking for files that are in pages_index.txt but do not exist"
14 while read TPL FILE DEPS
16 [ "$TPL" = "#" ] && continue
19 echo " *** FILE NOT FOUND: $FILE"
21 done < pages_index.txt