MaxScale/maxctrl/build.sh

23 lines
332 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@5
node_modules/pkg/lib-es5/bin.js -t node18-linux .