2006-12-01 10:16:46 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# this script fetches all cbx po files and copies them into thoraxs pootle dir
|
|
|
|
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
2006-12-01 10:59:19 +01:00
|
|
|
TARGETPATH="/home/cryptobox/pootle-files"
|
2006-12-01 10:16:46 +01:00
|
|
|
|
2006-12-01 10:59:19 +01:00
|
|
|
[ "`ls ${TARGETPATH}/`" ] && echo "$TARGETPATH is not empty; make sure we don't overwrite some translations!" && exit 2
|
|
|
|
cp -r ${BASEPATH}/intl/* ${TARGETPATH}/
|
|
|
|
for i in `ls ${BASEPATH}/plugins`; do
|
|
|
|
[ -d ${BASEPATH}/plugins/${i}/intl ] && cp -r ${BASEPATH}/plugins/${i}/intl/* ${TARGETPATH}/
|
2006-12-01 10:16:46 +01:00
|
|
|
done
|
2006-12-01 10:59:19 +01:00
|
|
|
|
2006-12-01 10:16:46 +01:00
|
|
|
chown -R pootle. ${TARGETPATH}
|
2006-12-01 10:59:19 +01:00
|
|
|
/etc/init.d/pootle restart
|