gen.sh 285 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -e
  3. ## Install flatc if not present
  4. ## ref. https://google.github.io/flatbuffers/flatbuffers_guide_building.html
  5. command -v flatc >/dev/null || { ./install_flatbuffers.sh; }
  6. flatc --go flatbuffer.fbs
  7. # Move files to the correct directory.
  8. mv fb/* ./
  9. rmdir fb