Sachith Hasaranga Seneviratne 795a6022e5 Revert "Revert "Merge sources.cmake change""
This reverts commit 0290564310ee3014561abd8ffb2f99f04a23e113.
2014-06-05 12:38:38 +05:30

25 lines
408 B
Bash
Executable File

#!/bin/bash
echo "Searching for unused stkgui files"
echo "---------------------------------"
cd data/gui
l=""
for i in $(find . -iname "*.stkgui"); do
s=$(basename $i)
x=$(find ../../src/states_screens -type f -exec grep -H $s \{} \; | wc -l)
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"