sort_strings.sh 813 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -eu
  3. type xsltproc > /dev/null
  4. type xmllint > /dev/null
  5. sort_xml_file() {
  6. xsltproc --output "$1" android_strings_format.xslt "$1"
  7. export XMLLINT_INDENT=" "
  8. xmllint --format --encode "utf-8" --output "$1" "$1"
  9. }
  10. sort_xml_file "../ffupdater/src/main/res/values/strings.xml"
  11. sort_xml_file "../ffupdater/src/main/res/values-bg/strings.xml"
  12. sort_xml_file "../ffupdater/src/main/res/values-de/strings.xml"
  13. sort_xml_file "../ffupdater/src/main/res/values-fr/strings.xml"
  14. sort_xml_file "../ffupdater/src/main/res/values-ja/strings.xml"
  15. sort_xml_file "../ffupdater/src/main/res/values-pl/strings.xml"
  16. sort_xml_file "../ffupdater/src/main/res/values-pt-rBR/strings.xml"
  17. sort_xml_file "../ffupdater/src/main/res/values-ru/strings.xml"
  18. sort_xml_file "../ffupdater/src/main/res/values-uk/strings.xml"