2016-10-12 13:41:53 +00:00
|
|
|
#!/bin/bash
|
2016-10-13 09:54:06 +00:00
|
|
|
set -e -o pipefail
|
2016-10-12 13:41:53 +00:00
|
|
|
|
2016-10-13 10:02:36 +00:00
|
|
|
git clone --depth 1 https://github.com/unicorn-engine/unicorn.git
|
2016-10-12 13:41:53 +00:00
|
|
|
|
2016-10-12 15:49:55 +00:00
|
|
|
source ctf-tools-venv-activate
|
2016-10-12 13:41:53 +00:00
|
|
|
|
|
|
|
pushd unicorn
|
2017-02-11 19:55:10 +00:00
|
|
|
echo "compiling unicorn"
|
|
|
|
UNICORN_QEMU_FLAGS="--python=$(which python)" PREFIX="$VIRTUAL_ENV" ./make.sh
|
2016-10-12 13:41:53 +00:00
|
|
|
echo "installing unicorn to $VIRTUAL_ENV"
|
|
|
|
UNICORN_QEMU_FLAGS="--python=$(which python)" PREFIX="$VIRTUAL_ENV" ./make.sh install
|
|
|
|
|
|
|
|
pushd bindings/python
|
|
|
|
#pip install -U .
|
|
|
|
make DEST_DIR="$VIRTUAL_ENV" install
|
|
|
|
popd
|
|
|
|
popd
|