mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
19 lines
430 B
Bash
Executable file
19 lines
430 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
DIR=$(pwd)
|
|
TMP=$(mktemp -d)
|
|
cd "$TMP"
|
|
cp -r "$DIR" orig
|
|
cp -r "$DIR" generated
|
|
|
|
cd generated
|
|
# delete all go-generated files generated (that adhere to the comment convention)
|
|
grep --include \*.go -lrIZ "^// Code generated .* DO NOT EDIT\.$" . | xargs --null rm
|
|
# now generate everything
|
|
go generate ./...
|
|
cd ..
|
|
|
|
# don't compare fuzzing corpora
|
|
diff --exclude=corpus --exclude=.git -ruN orig generated
|