2011-03-13 06:05:19 +00:00
|
|
|
#!/bin/sh
|
2016-04-18 03:39:07 +00:00
|
|
|
cd "$(dirname "$0")" || exit
|
2011-03-13 06:05:19 +00:00
|
|
|
echo "Updating translations via TP" && \
|
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/nano/ .
|
2016-04-18 03:39:07 +00:00
|
|
|
git add -v *.po
|
2011-03-13 06:05:19 +00:00
|
|
|
echo "Updating LINGUAS for all translations"
|
|
|
|
FILE=LINGUAS
|
2016-04-18 03:39:07 +00:00
|
|
|
echo "# List of available languages." >"${FILE}"
|
|
|
|
echo $(printf '%s\n' *.po | LC_ALL=C sort | sed 's/\.po//g') >>"${FILE}"
|
|
|
|
git add -v "${FILE}"
|
|
|
|
NEWSTUFF=$(git status --porcelain *.po)
|
|
|
|
if [ -n "${NEWSTUFF}" ]; then
|
|
|
|
printf "New langs found, re-running configure and make at top level (silently)..."
|
2011-03-13 06:05:19 +00:00
|
|
|
(cd .. && ./configure && make) >/dev/null
|
|
|
|
echo "done"
|
|
|
|
fi
|