ctf-tools/qemu/install

12 lines
306 B
Text
Raw Normal View History

2015-05-07 11:02:00 +00:00
#!/bin/bash
2015-12-08 08:32:30 +00:00
curl http://wiki.qemu-project.org/download/qemu-2.4.1.tar.bz2 | tar xvj
cd qemu-2.4.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