removed hard-coded paths from setuplocale.sh in bbb-client so it will work in different build environments

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3351 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Fred Dixon 2010-01-19 19:36:50 +00:00
parent 08decfc2ac
commit 328e42836d

View File

@ -6,12 +6,19 @@
NEW_LANG=$(cat ./src/org/bigbluebutton/util/i18n/ResourceUtil.as | tr -d '\r' | sed -n "/localeChain:Array/{s/.*\[ //g;s/\];//g;s/\"//g;s/,//g;p}")
echo "Checking languages: $NEW_LANG"
cd ~/dev/tools/flex3/frameworks/locale
CUR_DIR=$(pwd)
FLEX_DIR=$(which copylocale)
FLEX_DIR=${FLEX_DIR%/*}
cd "${FLEX_DIR}/../frameworks/locale"
for v in $NEW_LANG; do
if [ ! -d ${v} ]; then
echo "Creating locale for: ${v}"
copylocale en_US ${v}
fi
done
cd ~/dev/bbb-client
cd $CUR_DIR