#!/bin/bash

IOJS_VERSION=`iojs --version | sed 's/v//g'`

echo '#######'
echo "Iojs Version ${IOJS_VERSION}"
echo '#######'

if [[ $IOJS_VERSION ]] && [[ ! -d "$HOME/.node-gyp/$IOJS_VERSION" ]]; then
    echo "Going to install iojs development file"
    npm install pangyp;
    iojs ./node_modules/.bin/pangyp install ${IOJS_VERSION};
fi

#!/bin/bash

IOJS_VERSION=`iojs --version | sed 's/v//g'`

echo '#######'
echo "Iojs Version ${IOJS_VERSION}"
echo '#######'

if [[ "${IOJS_VERSION}" ]] && [[ ! -e "$HOME/.node-gyp/${IOJS_VERSION}/common.gypi" ]]; then
    echo "Going to install iojs development file"
    npm install pangyp;
    iojs ./node_modules/.bin/pangyp install ${IOJS_VERSION};
fi

Check gyp development file in a more specific way
Check gyp development file in a more specific way
