diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..0d8e56f70c20c330dad735848683dc0fb7f8432e --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# build railgun + +ROOT_PATH=$(readlink -f $(dirname ${0})) +SRC_PATH=${ROOT_PATH}/src +BUILD_PATH=${SRC_PATH}/build +LIB_PATH=${SRC_PATH}/lib +function _build +{ + if [ ! -d ${BUILD_PATH} ]; then + mkdir ${BUILD_PATH} + fi + cd ${BUILD_PATH} + cmake ${SRC_PATH} + cp -r ${SRC_PATH}/lib ${BUILD_PATH} + cd ${BUILD_PATH}/lib + python -m compileall builtin.py + cd ${BUILD_PATH} + make all +} + +_build \ No newline at end of file