2014-02-02 22:31:08 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Searching for unused stkgui files"
|
|
|
|
echo "---------------------------------"
|
|
|
|
cd data/gui
|
|
|
|
l=""
|
|
|
|
for i in $(find . -iname "*.stkgui"); do
|
|
|
|
s=$(basename $i)
|
2014-06-04 11:56:09 -04:00
|
|
|
x=$(find ../../src/states_screens -type f -exec grep -H $s \{} \; | wc -l)
|
2014-02-02 22:31:08 -05:00
|
|
|
echo -n "."
|
|
|
|
if [ $x == "0" ]; then
|
|
|
|
l="$l $i"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo
|
|
|
|
|
|
|
|
for i in $l; do
|
|
|
|
echo "$i appears to be not used."
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "done"
|
|
|
|
|
|
|
|
|
|
|
|
|