ctf-tools/qemu/install

12 lines
306 B
Text
Raw Normal View History

2015-05-07 11:02:00 +00:00
#!/bin/bash
2016-08-24 13:21:47 +00:00
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
2015-05-07 11:02:00 +00:00
make -j $(nproc)
make install