f9217437ad
* po/*: Sync latest translation fixes, add an update_linguas.sh script. Rename existing update.pl to update_sources.pl to make it more specific. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4541 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
22 строки
630 B
Bash
Исполняемый файл
22 строки
630 B
Bash
Исполняемый файл
#!/bin/sh
|
|
echo "Updating translations via TP" && \
|
|
rsync -Lrtvz translationproject.org::tp/latest/nano/ .
|
|
#
|
|
NEWSTUFF=`svn status | grep "^\? .*.po$" | awk '{ print $NF }'`
|
|
if [ "x$NEWSTUFF" != "x" ]; then
|
|
echo "Adding new languaes to SVN"
|
|
svn add $NEWSTUFF
|
|
fi
|
|
#
|
|
echo "Updating LINGUAS for all translations"
|
|
FILE=LINGUAS
|
|
echo "# List of available languages." >$FILE
|
|
/bin/ls *.po | tr '\n' ' ' | sed 's/\.po//g' >>$FILE
|
|
echo >> $FILE
|
|
#
|
|
if [ "x$NEWSTUFF" != "x" ]; then
|
|
echo -n "New langs found, re-running configure and make at top level (silently)..."
|
|
(cd .. && ./configure && make) >/dev/null
|
|
echo "done"
|
|
fi
|