diff options
| author | vanhauser-thc <vh@thc.org> | 2022-01-30 14:50:15 +0100 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2022-01-30 14:50:15 +0100 |
| commit | 43a7c0d601526654bb47f138b63a93d925a6e832 (patch) | |
| tree | 728ed0a0825fc695074c414f11b707da546ea694 /nyx_mode | |
| parent | 311649f4581ff54f32bf6fe85fea357c329b0b68 (diff) | |
| download | afl++-43a7c0d601526654bb47f138b63a93d925a6e832.tar.gz | |
make build_... scripts work without afl++ git checkout
Diffstat (limited to 'nyx_mode')
| -rwxr-xr-x | nyx_mode/build_nyx_support.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/nyx_mode/build_nyx_support.sh b/nyx_mode/build_nyx_support.sh index b6c1d54e..3cb13cf1 100755 --- a/nyx_mode/build_nyx_support.sh +++ b/nyx_mode/build_nyx_support.sh @@ -1,6 +1,4 @@ #!/bin/bash -set -e - echo "=================================================" echo " Nyx build script" echo "=================================================" @@ -19,6 +17,7 @@ echo "[*] Making sure all Nyx is checked out" git status 1>/dev/null 2>/dev/null if [ $? -eq 0 ]; then + git submodule init || exit 1 echo "[*] initializing QEMU-Nyx submodule" git submodule update ./QEMU-Nyx 2>/dev/null # ignore errors @@ -28,13 +27,16 @@ if [ $? -eq 0 ]; then git submodule update ./libnyx 2>/dev/null # ignore errors else - echo "[ ] not a git repo..." - exit 1 + + test -d QEMU-Nyx/.git || git clone https://github.com/nyx-fuzz/qemu-nyx QEMU-Nyx + test -d packer/.git || git clone https://github.com/nyx-fuzz/packer + test -d libnyx/.git || git clone https://github.com/nyx-fuzz/libnyx + fi -test -d QEMU-Nyx || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } -test -d packer || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } -test -d libnyx || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } +test -d QEMU-Nyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } +test -d packer/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } +test -d libnyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } echo "[*] checking packer init.cpio.gz ..." if [ ! -f "packer/linux_initramfs/init.cpio.gz" ]; then |
