ctf-tools/qemu/install
2016-08-24 23:21:47 +10:00

11 lines
306 B
Bash
Executable file

#!/bin/bash
curl http://wiki.qemu-project.org/download/qemu-2.6.1.tar.bz2 | tar xvj
cd qemu-2.6.1
if [[ "$(python --version 2>&1)" =~ Python\ 3 ]]; then
./configure "--prefix=$(dirname $PWD)" "--python=$(which python2)"
else
./configure "--prefix=$(dirname $PWD)"
fi
make -j $(nproc)
make install