much easier

This commit is contained in:
age 2006-12-01 09:59:19 +00:00
parent f4fafae946
commit aa45163112
1 changed files with 7 additions and 8 deletions

View File

@ -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
[ "`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 ] && echo "copy $i"
[ -d ${BASEPATH}/plugins/${i}/intl ] && mkdir ${TARGETPATH}/plugins/${i} && cp -r ${BASEPATH}/plugins/${i}/intl ${TARGETPATH}/$i
[ -d ${BASEPATH}/plugins/${i}/intl ] && cp -r ${BASEPATH}/plugins/${i}/intl/* ${TARGETPATH}/
done
chown -R pootle. ${TARGETPATH}
/etc/init.d/pootle restart