From aa45163112ae5e6f51d14fa7ba914416d7b5a592 Mon Sep 17 00:00:00 2001 From: age Date: Fri, 1 Dec 2006 09:59:19 +0000 Subject: [PATCH] much easier --- scripts/fetch_po_files.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/fetch_po_files.sh b/scripts/fetch_po_files.sh index 0ca4c05..24fb360 100755 --- a/scripts/fetch_po_files.sh +++ b/scripts/fetch_po_files.sh @@ -1,14 +1,13 @@ #!/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" +TARGETPATH="/home/cryptobox/pootle-files" -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 +[ "`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