Debian Codegraph @

script/generate

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`. -ex
2
3 # Separate core packages from those that depend on the whole library being built.
4 core=$(goscip-shell system . . go. list ./... | grepscip-shell system . . grep. -Ev 'avo/(examples|tests)')
5 post=$(goscip-shell system . . go. list ./... | grepscip-shell system . . grep. -E 'avo/(examples|tests)')
6
7 # Install avogen (for bootstrapping).
8 goscip-shell system . . go. install ./internal/cmd/avogen
9
10 # Attempt to delete generated files, to prove we can recreate them.
11 grepscip-shell system . . grep. -RE '^// Code generated.*DO NOT EDIT\.$' . | grepscip-shell system . . grep. -v download | cutscip-shell system . . cut. -d: -f1 | grepscip-shell system . . grep. -v '.md$' | xargsscip-shell system . . xargs. rm -v
12
13 # Generate once.
14 goscip-shell system . . go. generate -v -x ${core}
15
16 # If the instruction database has changed, may need to repeat.
17 goscip-shell system . . go. install ./internal/cmd/avogen
18 goscip-shell system . . go. generate -v -x ${core}
19
20 # Generate dependent packages.
21 goscip-shell system . . go. generate -v -x ${post}
22
23 # Regenerate documentation.
24 ./script/doc