mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
20 lines
361 B
Bash
20 lines
361 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
||
|
|
||
|
cd "$SCRIPTPATH/.."
|
||
|
|
||
|
if [[ ! -d r2dec-js ]]; then
|
||
|
git clone --depth 1 https://github.com/wargio/r2dec-js.git
|
||
|
fi
|
||
|
|
||
|
cd r2dec-js
|
||
|
rm -rf build
|
||
|
mkdir build && cd build
|
||
|
meson --buildtype=release --libdir=share/radare2/plugins --datadir=share/radare2/plugins "$@" ../p
|
||
|
ninja
|
||
|
ninja install
|
||
|
|