cryptonas/scripts/fetch_po_files.sh
2006-12-01 09:59:19 +00:00

14 lines
537 B
Bash
Executable file

#!/bin/sh
# this script fetches all cbx po files and copies them into thoraxs pootle dir
BASEPATH="/home/cryptobox/cbx-svn/trunk"
TARGETPATH="/home/cryptobox/pootle-files"
[ "`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}/
done
chown -R pootle. ${TARGETPATH}
/etc/init.d/pootle restart