Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
use npm rebuild rather than direct node-gyp call to avoid sqlite3 bre…
Browse files Browse the repository at this point in the history
…akage - refs mapbox/sqlite3#220
  • Loading branch information
Dane Springmeyer committed Oct 25, 2013
1 parent 4f1c5fb commit c33d633
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rebuild_cxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ while getopts "s" OPT; do
esac
done

BUILD_ROOT=${TILEMILL_ROOT}/node_root_dir

if [ "${RUN_SETUP}" = true ]; then
NVER=`node -e "console.log(process.versions.node)"`
echo "Running node-gyp setup for ${NVER}"
node-gyp install ${NVER}
BUILD_ROOT=${TILEMILL_ROOT}/node_root_dir
cp -r ~/.node-gyp/${NVER}/ ${BUILD_ROOT}
#rm -rf ~/.node-gyp/
rm -rf ~/.node-gyp/
fi
BUILD_ROOT=${TILEMILL_ROOT}/node_root_dir
CXX_MODULES=$(find ${TILEMILL_ROOT}/node_modules -name binding.gyp | sed 's,/binding.gyp,/,g')
for i in ${CXX_MODULES}; do cd $i && node-gyp rebuild --nodedir=${BUILD_ROOT}; done
npm rebuild --nodedir=${BUILD_ROOT} --build-from-source

0 comments on commit c33d633

Please sign in to comment.