File tree Expand file tree Collapse file tree 7 files changed +10
-63
lines changed Expand file tree Collapse file tree 7 files changed +10
-63
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
- set -e -o pipefail
3
2
4
- git clone --depth 1 https://github.com/keystone-engine/keystone.git
5
-
6
- source ctf-tools-venv-activate
7
-
8
- DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
9
-
10
- mkdir -p keystone/build/
11
- pushd keystone/build/
12
- cmake -DCMAKE_INSTALL_PREFIX=" $DIR " \
13
- -DCMAKE_BUILD_TYPE=Release \
14
- -DBUILD_SHARED_LIBS=ON \
15
- -DLLVM_TARGETS_TO_BUILD=" all" \
16
- -G " Unix Makefiles" ..
17
- make -j$( getconf _NPROCESSORS_ONLN) install
18
- popd
19
-
20
- pushd keystone/bindings/python
21
- pip install -U -e .
22
- # create a symlink that the python bindings can find the keystone lib
23
- ln -s $( readlink -f ../../../lib/libkeystone.so.0) keystone/libkeystone.so
24
- popd
25
-
26
- # kstool doesn't find the lib. so let's rm it
27
- rm -r bin/
3
+ ctf-tools-pip install -U keystone
4
+ # seems to be broken?
5
+ # ctf-tools-pip3 install -U keystone
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ set -e -o pipefail
4
4
source ctf-tools-venv-activate
5
5
6
6
pip uninstall -y keystone-engine || true
7
+ #! /bin/bash -ex
7
8
8
- if [[ -d keystone && -d keystone/build ]]; then
9
- export PREFIX=" $PWD "
10
- pushd keystone/build
11
- make uninstall
12
- popd
13
- fi
9
+ ctf-tools-pip uninstall -y keystone || true
10
+ ctf-tools-pip3 uninstall -y keystone || true
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
- set -e -o pipefail
3
2
4
- git clone --depth 1 https://github.com/unicorn-engine/unicorn.git
5
-
6
- source ctf-tools-venv-activate
7
-
8
- pushd unicorn
9
- echo " compiling unicorn"
10
- UNICORN_QEMU_FLAGS=" --python=$( which python) " PREFIX=" $VIRTUAL_ENV " ./make.sh
11
- echo " installing unicorn to $VIRTUAL_ENV "
12
- UNICORN_QEMU_FLAGS=" --python=$( which python) " PREFIX=" $VIRTUAL_ENV " ./make.sh install
13
-
14
- pushd bindings/python
15
- # pip install -U .
16
- make DEST_DIR=" $VIRTUAL_ENV " install
17
- popd
18
- popd
3
+ ctf-tools-pip install -U unicorn
4
+ ctf-tools-pip3 install -U unicorn
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
- set -eu -o pipefail
3
2
4
3
apt-get -y install libglib2.0-dev
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
3
- ctf-tools-venv-activate
4
-
5
- pip uninstall -y unicorn
6
-
7
- pushd unicorn
8
- PREFIX=" $VIRTUAL_ENV " ./make.sh uninstall
9
- popd
3
+ ctf-tools-pip uninstall -y unicorn || true
4
+ ctf-tools-pip3 uninstall -y unicorn || true
You can’t perform that action at this time.
0 commit comments