script to run code generation

This commit is contained in:
Michael McLoughlin
2018-11-25 17:00:14 -08:00
parent 0694ebab9b
commit b99b2cdbbf

14
script/generate Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash -ex
# Install avogen (for bootstrapping).
go install ./internal/cmd/avogen
# Attempt to delete generated files, to prove we can recreate them.
grep -REl 'Code generated.*DO NOT EDIT\.$' . | xargs rm -v
# Generate once.
go generate -v -x ./...
# If the instruction database has changed, may need to repeat.
go install ./internal/cmd/avogen
go generate -v -x ./...