1#!/usr/bin/env bash 2cd "${0%/*}" 3rm afl-latest.tgz 4wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz || exit 5tar -xzvf afl-latest.tgz 6rm afl-latest.tgz 7cd afl-* 8make || exit 9cd llvm_mode 10# may need to prepend LLVM_CONFIG=/usr/bin/llvm-config-3.8 or similar, depending on the system 11make || exit 12cd ../.. 13rm -rf afl 14mv afl-* afl