cutter/scripts/jsdec.sh

21 lines
328 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.7.0"
2020-01-24 11:18:18 +00:00
fi
cd jsdec
if [ -d build ]; then
rm -rf build
fi
meson --buildtype=release "$@" build
ninja -C build
ninja -C build install
2020-01-24 11:18:18 +00:00