mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
14 lines
360 B
Bash
Executable File
14 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2013 Reece H. Dunn
|
|
# License: GPLv3+
|
|
#
|
|
# Helper utility for removing a string/string-list item in all string resources.
|
|
#
|
|
# Usage: ./remove_string.sh <string_id>
|
|
|
|
ls res/values*/strings.xml | while read STRINGS ; do
|
|
xmlstarlet ed -d "/resources/*[@name='${1}']" ${STRINGS} > /tmp/strings.xml
|
|
mv /tmp/strings.xml ${STRINGS}
|
|
done
|