mattermost-community-enterp.../vendor/code.sajari.com/docconv/v2/iWork/generate.sh
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00

22 lines
669 B
Bash

#!/usr/bin/env bash
# Generate code from protos stored in pb-schema.
set -euo pipefail
cd "$(dirname "$0")"
function ensure_installed() {
command -v "$1" >/dev/null 2>&1 || {
echo >&2 "Could not find $1, please ensure it is installed."
echo "Try running: $2"
exit 1
}
}
ensure_installed protoc "brew install protobuf"
ensure_installed protoc-gen-go "go install google.golang.org/protobuf/cmd/protoc-gen-go@latest"
protoc -I=./pb-schema --go_out=paths=source_relative:. TSPArchiveMessages.proto
protoc -I=./pb-schema --go_out=paths=source_relative:. TSPDatabaseMessages.proto
protoc -I=./pb-schema --go_out=paths=source_relative:. TSPMessages.proto