#!/usr/bin/env bash

SHA_PATH="daemon/bpf.sha"
MAKE=${MAKE:-"make"}
if [ ! -e "$SHA_PATH" ]; then
	echo "Could not locate bpf.sha. Are you in the right directory?" >&2
	exit 1
fi

echo "GO_BINDATA_SHA1SUM=01234567890abcdef78901234567890abcdef789" > "$SHA_PATH"
echo "BPF_FILES=../bpf/.gitignore" >> "$SHA_PATH"
${MAKE} -C daemon apply-bindata

Add new script to auto-fix bpf.sha
contrib: Add new script to auto-fix bpf.sha

Add a script we can use to fix up the bpf.sha.
Run it, then run "git add daemon/bpf.sha".

Signed-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@cilium.io>
