2020-08-18 20:20:40 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2020-12-05 13:54:08 +03:00
|
|
|
declare -x target; target="$(uname -m)"; readonly target
|
|
|
|
declare -r -x download_gettext=${download_gettext:-false}
|
|
|
|
declare -r -x clean=${clean:-false}
|
|
|
|
declare -r -x build_libnvim=${build_libnvim:-true}
|
|
|
|
declare -r -x build_dir=${build_dir:-"./build"}
|
2020-08-18 20:20:40 +03:00
|
|
|
|
|
|
|
main() {
|
|
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null
|
|
|
|
|
2020-12-05 13:54:08 +03:00
|
|
|
pushd "./NvimServer"
|
|
|
|
./NvimServer/bin/build_nvimserver.sh
|
|
|
|
cp ./build/Build/Products/Release/NvimServer ../NvimView/Sources/NvimView
|
2020-12-06 12:55:20 +03:00
|
|
|
cp -r ./runtime ../NvimView/Sources/NvimView
|
|
|
|
cp ../NvimView/Sources/NvimView/com.qvacua.NvimView.vim ../NvimView/Sources/NvimView/runtime/plugin
|
|
|
|
|
2020-12-05 13:54:08 +03:00
|
|
|
popd >/dev/null
|
2020-08-18 20:20:40 +03:00
|
|
|
|
|
|
|
popd >/dev/null
|
|
|
|
}
|
|
|
|
|
2020-09-06 14:49:13 +03:00
|
|
|
main
|