cutter/scripts/jsdec.sh

20 lines
366 B
Bash
Raw Normal View History

2020-01-24 11:18:18 +00:00
#!/bin/bash
set -e
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
cd "$SCRIPTPATH/.."
if [[ ! -d jsdec ]]; then
git clone https://github.com/rizinorg/jsdec.git --depth 1 --branch v0.2.x
2020-01-24 11:18:18 +00:00
fi
cd jsdec
2020-01-24 11:18:18 +00:00
rm -rf build
mkdir build && cd build
meson --buildtype=release --libdir=share/rizin/plugins --datadir=share/rizin/plugins "$@" ../p
2020-01-24 11:18:18 +00:00
ninja
ninja install