mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
20 lines
321 B
Bash
20 lines
321 B
Bash
|
#!/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
|
||
|
|