- git-svn-diff.sh changed permission to 755 (thanks to WXbet)
[oscam.git] / webif / pages_index_check
blobf66ceea504ab29c4b2438c28722dc287b9179db2
1 #!/bin/sh
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|^\./||')
5 do
6 grep -w $FILE pages_index.txt >/dev/null
7 if [ $? != 0 ]
8 then
9 echo " *** FILE NOT IN pages_index.txt: $FILE"
11 done
13 echo "= Checking for files that are in pages_index.txt but do not exist"
14 while read TPL FILE DEPS
16 [ "$TPL" = "#" ] && continue
17 if [ ! -f $FILE ]
18 then
19 echo " *** FILE NOT FOUND: $FILE"
21 done < pages_index.txt