diff options
| author | Menny Even Danan <menny@evendanan.net> | 2015-03-27 21:24:57 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2015-03-27 21:51:01 +0000 |
| commit | fa3549ca50e0c90e134200e705a561d5fe388723 (patch) | |
| tree | e0fe281d30be19f91ccf1142b84630598f518718 /remove_string.sh | |
| parent | 1c9ad48f85ce7b7e10af45bd66e6d04986ddb545 (diff) | |
| download | AnySoftKeyboard-fa3549ca50e0c90e134200e705a561d5fe388723.tar.gz AnySoftKeyboard-fa3549ca50e0c90e134200e705a561d5fe388723.tar.bz2 | |
adding a string removal util
And updating all strings formatting.
Diffstat (limited to 'remove_string.sh')
| -rwxr-xr-x | remove_string.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/remove_string.sh b/remove_string.sh new file mode 100755 index 000000000..aa52e27d8 --- /dev/null +++ b/remove_string.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# +# Copyright (C) 2013 Reece H. Dunn +# License: GPLv3+ +# +# Helper utility for removing a string/string-list item in all string resources. + +ls src/main/res/values*/strings.xml | while read STRINGS ; do + xmlstarlet ed -P -d "/resources/*[@name='${1}']" ${STRINGS} > /tmp/strings.xml + mv /tmp/strings.xml ${STRINGS} +done |
