2006-12-01 10:16:46 +01:00
|
|
|
#!/bin/sh
|
2006-12-01 20:26:30 +01:00
|
|
|
# this script symlinks all cbx po files to the thoraxs pootle dir
|
2006-12-01 10:16:46 +01:00
|
|
|
BASEPATH="/home/cryptobox/cbx-svn/trunk"
|
2006-12-01 10:59:19 +01:00
|
|
|
TARGETPATH="/home/cryptobox/pootle-files"
|
2006-12-01 10:16:46 +01:00
|
|
|
|
2006-12-01 20:26:30 +01:00
|
|
|
for language in `ls ${BASEPATH}/intl/` ; do
|
2006-12-01 20:52:38 +01:00
|
|
|
echo $language
|
2006-12-01 20:26:30 +01:00
|
|
|
[ ! -d ${TARGETPATH}/${language} ] && mkdir -p ${TARGETPATH}/${language}
|
2006-12-01 20:52:38 +01:00
|
|
|
find ${BASEPATH}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \;
|
2006-12-01 20:26:30 +01:00
|
|
|
for plugin in `ls ${BASEPATH}/plugins/`; do
|
2006-12-01 20:52:38 +01:00
|
|
|
find ${BASEPATH}/plugins/${plugin}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \;
|
2006-12-01 20:26:30 +01:00
|
|
|
done
|
2006-12-01 10:16:46 +01:00
|
|
|
done
|
2006-12-01 10:59:19 +01:00
|
|
|
|
2006-12-01 10:16:46 +01:00
|
|
|
chown -R pootle. ${TARGETPATH}
|
2006-12-01 10:59:19 +01:00
|
|
|
/etc/init.d/pootle restart
|