mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
415 B
Bash
15 lines
415 B
Bash
11 years ago
|
#!/bin/bash
|
||
11 years ago
|
for DIR in $(ls -d **/src/main/res/layout*); do
|
||
|
for file in $(ls -l ${DIR} | awk '{ print $9}' | sed 's/\..\+//g'); do
|
||
|
if [ ! -f ${DIR}/${file} ]; then
|
||
|
continue
|
||
|
fi;
|
||
|
filename=`basename ${file}`
|
||
|
filename=${filename%.*}
|
||
|
git grep -q ${filename} .
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo -e "${DIR}/${file} not used"
|
||
|
fi;
|
||
|
done;
|
||
11 years ago
|
done;
|