#!/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