From fd3caa0fd50b084e0f91461edbe0df75ac186b2e Mon Sep 17 00:00:00 2001 From: age Date: Fri, 1 Dec 2006 09:16:46 +0000 Subject: [PATCH] handle po files for pootle --- scripts/fetch_po_files.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/fetch_po_files.sh diff --git a/scripts/fetch_po_files.sh b/scripts/fetch_po_files.sh new file mode 100755 index 0000000..0ca4c05 --- /dev/null +++ b/scripts/fetch_po_files.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# this script fetches all cbx po files and copies them into thoraxs pootle dir +BASEPATH="/home/cryptobox/cbx-svn/trunk" +TARGETPATH="/var/lib/pootle/cryptobox" + +mkdir -p ${TARGETPATH}/cryptobox-server +mkdir -p ${TARGETPATH}/plugins +#echo "copy cryptobox-server" +cp -r ${BASEPATH}/intl/* ${TARGETPATH}/cryptobox-server +for i in `ls ${BASEPATH}/plugins`; do + #[ -d ${BASEPATH}/plugins/${i}/intl ] && echo "copy $i" + [ -d ${BASEPATH}/plugins/${i}/intl ] && mkdir ${TARGETPATH}/plugins/${i} && cp -r ${BASEPATH}/plugins/${i}/intl ${TARGETPATH}/$i +done +chown -R pootle. ${TARGETPATH}