mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 10:48:33 +01:00
31 lines
613 B
Bash
31 lines
613 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
cd www-bzr || exit
|
||
|
bzr merge || exit
|
||
|
bzr commit --unchanged -m "Merge from main branch" || exit
|
||
|
cd .. || exit
|
||
|
|
||
|
cd www-svn || exit
|
||
|
svn update || exit
|
||
|
cd .. || exit
|
||
|
|
||
|
languages=""
|
||
|
for f in www-bzr/locale/*.po; do
|
||
|
lang=`basename "$f" .po`
|
||
|
languages="$languages $lang"
|
||
|
|
||
|
cp $f www-svn/locale/ || exit
|
||
|
mkdir -p www-svn/locale/$lang/LC_MESSAGES/
|
||
|
|
||
|
svn add www-svn/locale/$lang.po www-svn/locale/$lang/
|
||
|
done
|
||
|
|
||
|
sed www-svn/Makefile -i.bak -e "s/LANGUAGES=.*/LANGUAGES=$languages/"
|
||
|
|
||
|
cd www-svn || exit
|
||
|
make || exit
|
||
|
make || exit
|
||
|
cd ../.. || exit
|
||
|
|
||
|
echo "Now change svn-www/data.py to add any new langauges"
|