| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [scip-shell system . . `[`. ! -f po/shared-mime-info.pot ] ; then |
| 6 | echoscip-shell system . . echo. "Please generate “po/shared-mime-info.pot” before running this command" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | if [scip-shell system . . `[`. data/freedesktop.org.xml.in -nt po/shared-mime-info.pot ] ; then |
| 11 | echoscip-shell system . . echo. "Please update “po/shared-mime-info.pot” before running this command" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | if [scip-shell system . . `[`. ! -f .tx/config ] ; then |
| 16 | echoscip-shell system . . echo. "Please run this command from the root of the source directory" |
| 17 | exit 1 |
| 18 | fi |
| 19 | |
| 20 | # NOTE: tx should be installed from https://github.com/transifex/cli |
| 21 | # The older transifex-client project (in python) is outdated and rejected by the server |
| 22 | |
| 23 | tx pull --all --force --skip |
| 24 | tx push --source |