Permalink
Browse files

Drop use of setpath and rather configure PATH and PYTHONPATH correctly

  • Loading branch information...
1 parent 2c6f480 commit 51c183c10cac9e06c8dd8571b11a6fb8b0c7a3c7 @dwaynebailey dwaynebailey committed Mar 20, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 tools/mozilla/build_firefox.sh
@@ -88,9 +88,14 @@ POUPDATED_DIR_REL=`echo ${POUPDATED_DIR} | sed "s#${BUILD_DIR}/##"`
else
svn co https://translate.svn.sourceforge.net/svnroot/translate/src/trunk ${TOOLS_DIR}
fi
-(cd ${TOOLS_DIR}; ./setuppath)
-. ${TOOLS_DIR}/setpath
+export PYTHONPATH="${TOOLS_DIR}":"$PYTHONPATH"
+export PATH="${TOOLS_DIR}/translate/tools":\
+"${TOOLS_DIR}/translate/translate/convert":\
+"${TOOLS_DIR}/translate/translate/tools":\
+"${TOOLS_DIR}/translate/translate/filters":\
+"${TOOLS_DIR}/translate/tools/mozilla":\
+"$PATH"
if [ $opt_vc ]; then
if [ -d "${MOZCENTRAL_DIR}/.hg" ]; then

0 comments on commit 51c183c

Please sign in to comment.