just links

This commit is contained in:
age 2006-12-01 19:26:30 +00:00
parent aa45163112
commit 55aeea782f
1 changed files with 16 additions and 5 deletions

View File

@ -1,12 +1,23 @@
#!/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"
#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
cp -r ${BASEPATH}/intl/* ${TARGETPATH}/
for i in `ls ${BASEPATH}/plugins`; do
[ -d ${BASEPATH}/plugins/${i}/intl ] && cp -r ${BASEPATH}/plugins/${i}/intl/* ${TARGETPATH}/
## pot for the server
find ${BASEPATH}/intl/ -name *.pot -exec ln -s '{}' ${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
chown -R pootle. ${TARGETPATH}