just links
This commit is contained in:
parent
aa45163112
commit
55aeea782f
|
@ -1,12 +1,23 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# this script fetches all cbx po files and copies them into thoraxs pootle dir
|
# this script symlinks all cbx po files to the thoraxs pootle dir
|
||||||
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
||||||
|
#TARGETPATH="/home/cryptobox/pootle-files"
|
||||||
TARGETPATH="/home/cryptobox/pootle-files"
|
TARGETPATH="/home/cryptobox/pootle-files"
|
||||||
|
|
||||||
[ "`ls ${TARGETPATH}/`" ] && echo "$TARGETPATH is not empty; make sure we don't overwrite some translations!" && exit 2
|
## pot for the server
|
||||||
cp -r ${BASEPATH}/intl/* ${TARGETPATH}/
|
find ${BASEPATH}/intl/ -name *.pot -exec ln -s '{}' ${TARGETPATH}/ \;
|
||||||
for i in `ls ${BASEPATH}/plugins`; do
|
|
||||||
[ -d ${BASEPATH}/plugins/${i}/intl ] && cp -r ${BASEPATH}/plugins/${i}/intl/* ${TARGETPATH}/
|
for language in `ls ${BASEPATH}/intl/` ; do
|
||||||
|
[ ! -d ${TARGETPATH}/${language} ] && mkdir -p ${TARGETPATH}/${language}
|
||||||
|
## po for the server
|
||||||
|
find ${BASEPATH}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; 1 &>2 >/dev/null
|
||||||
|
|
||||||
|
for plugin in `ls ${BASEPATH}/plugins/`; do
|
||||||
|
## po & pot for plugins
|
||||||
|
find ${BASEPATH}/plugins/${plugin}/intl/ -name *.pot -exec ln -s '{}' ${TARGETPATH}/ \; 1 &>2 >/dev/null
|
||||||
|
find ${BASEPATH}/plugins/${plugin}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; 1 &>2 >/dev/null
|
||||||
|
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
chown -R pootle. ${TARGETPATH}
|
chown -R pootle. ${TARGETPATH}
|
||||||
|
|
Loading…
Reference in New Issue