much easier
This commit is contained in:
parent
f4fafae946
commit
aa45163112
|
@ -1,14 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# this script fetches all cbx po files and copies them into thoraxs pootle dir
|
# this script fetches all cbx po files and copies them into thoraxs pootle dir
|
||||||
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
||||||
TARGETPATH="/var/lib/pootle/cryptobox"
|
TARGETPATH="/home/cryptobox/pootle-files"
|
||||||
|
|
||||||
mkdir -p ${TARGETPATH}/cryptobox-server
|
[ "`ls ${TARGETPATH}/`" ] && echo "$TARGETPATH is not empty; make sure we don't overwrite some translations!" && exit 2
|
||||||
mkdir -p ${TARGETPATH}/plugins
|
cp -r ${BASEPATH}/intl/* ${TARGETPATH}/
|
||||||
#echo "copy cryptobox-server"
|
for i in `ls ${BASEPATH}/plugins`; do
|
||||||
cp -r ${BASEPATH}/intl/* ${TARGETPATH}/cryptobox-server
|
[ -d ${BASEPATH}/plugins/${i}/intl ] && cp -r ${BASEPATH}/plugins/${i}/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
|
|
||||||
done
|
done
|
||||||
|
|
||||||
chown -R pootle. ${TARGETPATH}
|
chown -R pootle. ${TARGETPATH}
|
||||||
|
/etc/init.d/pootle restart
|
||||||
|
|
Loading…
Reference in New Issue