diff options
| author | koem <spam@petoria.de> | 2013-02-12 04:04:13 -0800 |
|---|---|---|
| committer | koem <spam@petoria.de> | 2013-02-12 04:04:13 -0800 |
| commit | 7b4a0b337a5f22bf0058c22967da94faea9ce318 (patch) | |
| tree | a9991f02c99d417e2517f8831c6505e385ee8459 /main/project/attributes/listEnStrings.sh | |
| parent | 70251c24f5fafeeb150a2142249245e9515f560b (diff) | |
| parent | 3c3b9bb7f748bd43126e39a83268d23056db6ca6 (diff) | |
| download | cgeo-7b4a0b337a5f22bf0058c22967da94faea9ce318.zip cgeo-7b4a0b337a5f22bf0058c22967da94faea9ce318.tar.gz cgeo-7b4a0b337a5f22bf0058c22967da94faea9ce318.tar.bz2 | |
Merge pull request #2465 from koem/oc_icons
Icons for OC
Diffstat (limited to 'main/project/attributes/listEnStrings.sh')
| -rwxr-xr-x | main/project/attributes/listEnStrings.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/project/attributes/listEnStrings.sh b/main/project/attributes/listEnStrings.sh new file mode 100755 index 0000000..1fae240 --- /dev/null +++ b/main/project/attributes/listEnStrings.sh @@ -0,0 +1,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 |
