mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 02:41:08 +00:00
866e36b970
* Fix for C++ with r_magic.h ?
23 lines
451 B
Bash
Executable File
23 lines
451 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# find root
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
. ./sys/CONFIG
|
|
cat sys/CONFIG
|
|
|
|
export PYTHON_VERSION
|
|
export PYTHON_CONFIG
|
|
echo "Using PYTHON_VERSION ${PYTHON_VERSION}"
|
|
PYTHON_CONFIG="python${PYTHON_VERSION}-config"
|
|
echo "Using PYTHON_CONFIG ${PYTHON_CONFIG}"
|
|
echo
|
|
|
|
cd r2-bindings
|
|
./configure --prefix=/usr --enable-devel --enable=python
|
|
cd python
|
|
make clean
|
|
make
|
|
[ ! "$1" = --no-install ] && \
|
|
sudo make install PYTHON_VERSION=${PYTHON_VERSION}
|