#!/bin/bash

SCRIPTPATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)

NW_VERSION=$1
NW_VERSION=${NW_VERSION:=0.8.0}
REBUILD_MODULES=("codebox/node_modules/shux/node_modules/pty.js" "codebox/node_modules/ctags" "codebox/node_modules/gittle/node_modules/pty.js" "codebox/node_modules/vfs-local/node_modules/pty.js")

echo $NW_VERSION
function rebuild_module () {
  bash -c "cd $1 && $SCRIPTPATH/../node_modules/nw-gyp/bin/nw-gyp.js rebuild --target=$NW_VERSION"
}

for module in ${REBUILD_MODULES[@]}; do
  rebuild_module node_modules/$module
done
#!/bin/bash

SCRIPTPATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)

NW_VERSION=$1
NW_VERSION=${NW_VERSION:=0.8.0}
REBUILD_MODULES=("codebox/node_modules/shux/node_modules/pty.js" "codebox/node_modules/bugs/node_modules/pty.js" "codebox/node_modules/ctags" "codebox/node_modules/gittle/node_modules/pty.js" "codebox/node_modules/vfs-local/node_modules/pty.js")

echo $NW_VERSION
function rebuild_module () {
  bash -c "cd $1 && $SCRIPTPATH/../node_modules/nw-gyp/bin/nw-gyp.js rebuild --target=$NW_VERSION"
}

for module in ${REBUILD_MODULES[@]}; do
  rebuild_module node_modules/$module
done
Add bugs (pty) to rebuild with nw-gyp
Add bugs (pty) to rebuild with nw-gyp
