cryptonas/scripts/fetch_po_files.sh
2006-12-01 19:52:38 +00:00

17 lines
615 B
Bash
Executable file

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