slackbuilds_ponce/development/aflplusplus/mkqemutarball.sh
B. Watson 8afb0fcbeb
development/aflplusplus: Updated for version 4.04c.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-01-07 08:13:40 +07:00

27 lines
786 B
Bash

#!/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