kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -xe |
| 3 | |
| 4 | apt update |
kdanylov aka koder | 13e5845 | 2018-07-15 02:51:51 +0300 | [diff] [blame^] | 5 | apt -y install g++ git zlib1g-dev libaio-dev make bzip2 |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 6 | cd /tmp |
koder aka kdanilov | 6ab4d43 | 2015-06-22 00:26:28 +0300 | [diff] [blame] | 7 | git clone https://github.com/axboe/fio.git |
| 8 | cd fio |
| 9 | ./configure |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 10 | make -j 4 |
| 11 | . /etc/lsb-release |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 12 | chmod a-x fio |
| 13 | bzip2 -z -9 fio |
| 14 | mv fio.bz2 "fio_${DISTRIB_CODENAME}_x86_64.bz2" |