#!/usr/bin/env bash set -euo pipefail FUZZ_DIR=$(cd -- "$(dirname -- "$0")" && pwd) ROOT=$(cd -- "$FUZZ_DIR/../../.." && pwd) SUP="${EC_FIXTURES:-$ROOT/fixtures}/open/fate/sub/pgs_sub.sup" [ -f "$SUP" ] || { echo "seed.sh: $SUP missing; run scripts/fixtures.sh" >&2; exit 2; } CORPUS="$FUZZ_DIR/corpus" mkdir -p "$CORPUS"/{segments,rle,compose} head -c 65536 "$SUP" > "$CORPUS/segments/pgs_sub" head -c 4096 "$SUP" > "$CORPUS/compose/pgs_sub" head -c 4096 "$SUP" > "$CORPUS/rle/pgs_sub" echo "ec-pgs seeds written"