#!/usr/bin/env bash BASEDIR=$(dirname "$0") cd "$BASEDIR/" machine="$(uname -s)" case "${machine}" in Linux*) machine=Linux;; # Darwin*) machine=Mac;; MINGW*) machine=MinGW;; *) machine="UNKNOWN:${machine}" esac if [[ ${machine} == "UNKNOWN"* ]]; then echo "Unknown platform ${machine}" exit 1 fi if [[ ${machine} == "MinGW" ]]; then mkdir -p build/win32_64/ cd build/win32_64 rm teaclient_codec.node; ln -s ../../codec/cmake-build-debug/teaclient_codec.node rm teaclient_ppt.node; ln -s ../../ppt/cmake-build-debug/teaclient_ppt.node fi if [[ ${machine} == "Linux" ]]; then mkdir -p build/linux_amd64/ cd build/linux_amd64 rm teaclient_codec.node; ln -s ../../codec/cmake-build-debug/Debug/teaclient_codec.node rm teaclient_ppt.node; ln -s ../../ppt/cmake-build-debug/Debug/teaclient_ppt.node fi