blob: 1fae2402a23b0fd50b153c9d249e07d5ee6a1ff5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
require () {
hash $1 2>&- || { echo >&2 "I require $1 but it's not installed. Aborting."; exit 1; }
}
require sed
require cut
stringfile="../../res/values/strings.xml"
cat iconlist.txt | grep -v "^#" | while read l; do
name=`echo $l | cut -d "|" -f 1 | sed "s/ *//g"`
att=attribute_${name}_
for yn in yes no; do
line="`grep ${att}${yn} $stringfile`"
if [ -z "$line" ]; then
echo " <string name=\"${att}${yn}\"</string>"
else
echo "$line"
fi
done
done
|