summaryrefslogtreecommitdiff
path: root/po/update_translations.sh
blob: f6479bf6936d3b6710291f4ef6156bf5cbdbe31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ ! -f po/shared-mime-info.pot ] ; then
	echo "Please generate “po/shared-mime-info.pot” before running this command"
	exit 1
fi

if [ data/freedesktop.org.xml.in -nt po/shared-mime-info.pot ] ; then
	echo "Please update “po/shared-mime-info.pot” before running this command"
	exit 1
fi

if [ ! -f .tx/config ] ; then
	echo "Please run this command from the root of the source directory"
	exit 1
fi

tx pull --all --force --skip
tx push --source