Files
comaps/tools/unix/generate_proto.sh
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

14 lines
577 B
Bash
Executable File

#!/bin/bash
set -e -u -x
OMIM_PATH="${OMIM_PATH:-$(dirname "$0")/../..}"
rm "$OMIM_PATH/indexer"/drules_struct.pb.* || true
rm "$OMIM_PATH/tools/python/stylesheet"/drules_struct_pb2.* || true
rm "$OMIM_PATH/tools/kothic/src"/drules_struct_pb2.* || true
PROTO="$OMIM_PATH/indexer/drules_struct.proto"
protoc --proto_path="$OMIM_PATH/indexer" --cpp_out="$OMIM_PATH/indexer" "$PROTO"
protoc --proto_path="$OMIM_PATH/indexer" --python_out="$OMIM_PATH/tools/python/stylesheet" "$PROTO"
protoc --proto_path="$OMIM_PATH/indexer" --python_out="$OMIM_PATH/tools/kothic/src" "$PROTO"