mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-18 22:05:51 +01:00
18 lines
496 B
Bash
18 lines
496 B
Bash
#!/usr/bin/env bash
|
|
cd "${0%/*}"
|
|
|
|
if [ -z "${GET_AFL_VERSION}" ]; then
|
|
GET_AFL_VERSION="$(wget --quiet -O - "https://api.github.com/repos/AFLplusplus/AFLplusplus/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')"
|
|
fi
|
|
AFL_FILENAME="$GET_AFL_VERSION.tar.gz"
|
|
AFL_URL="https://github.com/AFLplusplus/AFLplusplus/archive/$AFL_FILENAME"
|
|
|
|
rm $AFL_FILENAME
|
|
wget $AFL_URL || exit
|
|
tar -xzvf $AFL_FILENAME
|
|
rm $AFL_FILENAME
|
|
cd AFLplusplus-*
|
|
make source-only || exit
|
|
cd ..
|
|
rm -rf afl
|
|
mv AFLplusplus-* afl |