cutter/scripts/jsdec.sh

20 lines
326 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 2 --branch master
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 -Djsc_folder="../" "$@" ../p
2020-01-24 11:18:18 +00:00
ninja
ninja install