cutter/scripts/r2dec.sh
2020-01-24 12:18:18 +01:00

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