I'm not sure if we needed the code that I duplicated but I really don't want to
rock the board anymore with this function. This causes all unit tests to pass
and everthing seems okay now?
Testing Done:
Ran the unit tests with TZ values of empty, `Asia/Kathmandu` and `Pacific/Auckland`.
Reviewed at https://reviews.imfreedom.org/r/1238/
#!/bin/bash -eu
# This uses bash for the <() syntax.
# TODO: Is there a way we can ignore files with only fuzzy-string changes?
# These are the languages which are maintained in Transifex.
transifex_languages=$(ls*.po|cut-d.-f1|xargsecho)
if!whichtx>/dev/null
then
cat>&2<< EOF
You must install the Transifex command-line client:
http://docs.transifex.com/client/setup/
EOF
exit1
fi
cat<< EOF
This script assumes your working tree is clean, at least in the po directory.
It pulls the translations from Transifex, works out what has changed, and
COMMITS intltool-update changes without prompting. It then leaves the
remaining changes for manual review and committing.