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