gen.sh raw

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