Added first script to find unused files in STK.
This commit is contained in:
parent
2a66d53e8f
commit
4d3ba6509e
24
tools/find_unused.sh
Executable file
24
tools/find_unused.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/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 -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"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user