lib/cmdline/testdata/gendoc: Make gendoc build packages instead of
running group of files.

'go run ...' ignores build tags. So, when generating docs for main's that
involve conditional builds, redifined variable errors were unavoidable.

To fix this I modified gendoc to first build the package and then run
the executable with the doc generation flags.

https://vanadium-review.googlesource.com/3951 depends on this.

Change-Id: I2678835a1b310b2306b6697a0a71e5a7fdb048f5
1 file changed
tree: 2ebb2ee4b4a32e6bcbc304febe0b389ed46d6a0a
  1. cmdline/
  2. dbutil/
  3. textutil/
  4. .gitignore