#!/bin/sh # this script symlinks all cbx po files to the thoraxs pootle dir BASEPATH="/home/cryptobox/cbx-svn/trunk" TARGETPATH="/home/cryptobox/pootle-files" for language in `ls ${BASEPATH}/intl/` ; do echo $language [ ! -d ${TARGETPATH}/${language} ] && mkdir -p ${TARGETPATH}/${language} find ${BASEPATH}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; for plugin in `ls ${BASEPATH}/plugins/`; do find ${BASEPATH}/plugins/${plugin}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; done done chown -R pootle. ${TARGETPATH} /etc/init.d/pootle restart