From f6295a4b2de23c3e066e6b7fbbee9818127c40e0 Mon Sep 17 00:00:00 2001 From: age Date: Fri, 1 Dec 2006 19:52:38 +0000 Subject: [PATCH] .pot aren't needed --- scripts/fetch_po_files.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/fetch_po_files.sh b/scripts/fetch_po_files.sh index 1b43e6d..87d0626 100755 --- a/scripts/fetch_po_files.sh +++ b/scripts/fetch_po_files.sh @@ -1,22 +1,14 @@ #!/bin/sh # 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" -## pot for the server -find ${BASEPATH}/intl/ -name *.pot -exec ln -s '{}' ${TARGETPATH}/ \; - for language in `ls ${BASEPATH}/intl/` ; do + echo $language [ ! -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 - + find ${BASEPATH}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; 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 - + find ${BASEPATH}/plugins/${plugin}/intl/${language} -name *.po -exec ln -s '{}' ${TARGETPATH}/${language}/ \; done done