#!/usr/bin/env bash
#
# This will combine all our external api config into a single yaml suitable to pass to protoc
#
config_out=services/grpc_config.yaml
rm -Rf $config_out
echo '
http:
  rules:
' >> $config_out
for s in $(find services -name "*.cfg.yaml"); do
  echo "found file $s"
  tail -n +3 $s >> $config_out
done
