MaxScale/maxctrl/build.sh
Markus Mäkelä d68f20b75b
Also copy version files for MaxCtrl builds
When MaxCtrl is being built, the source is copied into the build directory
to prevent polluting the source tree with node_modules. This means that
any relative references MaxCtrl builds make outside of the maxctrl
directory must be copied to the build directory.
2018-07-24 09:51:46 +03:00

23 lines
338 B
Bash
Executable File

#/bin/bash
if [ $# -lt 1 ]
then
echo "Usage: $0 SRC"
exit 1
fi
src=$1
if [ "$PWD" != "$src" ]
then
# Copy sources to working directory
cp -r -t $PWD/maxctrl $src/maxctrl/*
cp -r -t $PWD/ $src/VERSION*.cmake
fi
cd $PWD/maxctrl
npm install
npm install pkg@4.2.3
node_modules/pkg/lib-es5/bin.js -t node6-linux-x64 .