blob: 0bd7b7b11fcd67ce8c5e46394dddc5ffc2fce1d4 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# maintainer script. prepares qemuafl tarball for a given version of
# aflplusplus. requires network access and write permission to current
# directory. qemuafl has a long git history so this takes forever...
set -e
source ./aflplusplus.info
QEMUVER="$( tar xvfO AFLplusplus-$VERSION.tar.gz AFLplusplus-$VERSION/qemu_mode/QEMUAFL_VERSION )"
if [ -z "$QEMUVER" ]; then
echo "Can't get qemuafl version, missing AFLplusplus tarball?" 1>&2
exit 1
fi
echo "==> checking out qemuafl commit $QEMUVER"
rm -rf qemuafl qemuafl-$QEMUVER.tar.xz
git clone https://github.com/AFLplusplus/qemuafl
cd qemuafl
git checkout $QEMUVER
git submodule init
git submodule update
find . -name .git\* | xargs rm -rf
cd -
tar cvfJ qemuafl-$QEMUVER.tar.xz qemuafl
md5sum qemuafl-$QEMUVER.tar.xz
|