blob: aa52e27d8c2f3b849104702f9d5673918e92278a (
plain)
1
2
3
4
5
6
7
8
9
10
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
|