mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
20 lines
321 B
Bash
Executable File
20 lines
321 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|
|
|
cd "$SCRIPTPATH/.."
|
|
|
|
if [[ ! -d libswift ]]; then
|
|
git clone https://github.com/rizinorg/rz-libswift.git --depth 1 libswift
|
|
fi
|
|
|
|
cd libswift
|
|
rm -rf build || sleep 0
|
|
mkdir build && cd build
|
|
meson --buildtype=release "$@" ..
|
|
ninja
|
|
ninja install
|
|
|