handle po files for pootle

This commit is contained in:
age 2006-12-01 09:16:46 +00:00
parent 7fabf7a264
commit fd3caa0fd5
1 changed files with 14 additions and 0 deletions

14
scripts/fetch_po_files.sh Executable file
View File

@ -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}