sort_strings.sh 877 B

1234567891011121314151617181920212223
  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-cs/strings.xml"
  13. sort_xml_file "../ffupdater/src/main/res/values-de/strings.xml"
  14. sort_xml_file "../ffupdater/src/main/res/values-fr/strings.xml"
  15. sort_xml_file "../ffupdater/src/main/res/values-ja/strings.xml"
  16. sort_xml_file "../ffupdater/src/main/res/values-pl/strings.xml"
  17. sort_xml_file "../ffupdater/src/main/res/values-pt-rBR/strings.xml"
  18. sort_xml_file "../ffupdater/src/main/res/values-ru/strings.xml"
  19. sort_xml_file "../ffupdater/src/main/res/values-uk/strings.xml"