2022-01-05 19:01:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2024-01-15 22:27:42 +03:00
|
|
|
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2022-01-05 19:01:52 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
# --- begin runfiles.bash initialization ---
|
|
|
|
# Copy-pasted from Bazel's Bash runfiles library (tools/bash/runfiles/runfiles.bash).
|
|
|
|
if [[ ! -d "${RUNFILES_DIR:-/dev/null}" && ! -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then
|
|
|
|
if [[ -f "$0.runfiles_manifest" ]]; then
|
|
|
|
export RUNFILES_MANIFEST_FILE="$0.runfiles_manifest"
|
|
|
|
elif [[ -f "$0.runfiles/MANIFEST" ]]; then
|
|
|
|
export RUNFILES_MANIFEST_FILE="$0.runfiles/MANIFEST"
|
|
|
|
elif [[ -f "$0.runfiles/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; then
|
|
|
|
export RUNFILES_DIR="$0.runfiles"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ -f "${RUNFILES_DIR:-/dev/null}/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; then
|
|
|
|
source "${RUNFILES_DIR}/bazel_tools/tools/bash/runfiles/runfiles.bash"
|
|
|
|
elif [[ -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then
|
|
|
|
source "$(grep -m1 "^bazel_tools/tools/bash/runfiles/runfiles.bash " \
|
|
|
|
"$RUNFILES_MANIFEST_FILE" | cut -d ' ' -f 2-)"
|
|
|
|
else
|
|
|
|
echo >&2 "ERROR: cannot find @bazel_tools//tools/bash/runfiles:runfiles.bash"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
# --- end runfiles.bash initialization ---
|
|
|
|
|
|
|
|
PROTOS=$(rlocation $TEST_WORKSPACE/$1)
|
|
|
|
DIFF=$2
|
|
|
|
SORT=$3
|
|
|
|
|
|
|
|
export LANG=C
|
|
|
|
|
2023-08-09 09:36:32 +03:00
|
|
|
$DIFF -u <(unzip -Z1 $PROTOS | $SORT | sed 's|^[^/]*/||g') <((cat <<EOF
|
2024-03-18 21:22:44 +03:00
|
|
|
com/daml/daml_lf_2_1/daml_lf.proto
|
|
|
|
com/daml/daml_lf_2_1/daml_lf2.proto
|
2022-01-05 19:01:52 +03:00
|
|
|
com/daml/daml_lf_dev/daml_lf.proto
|
2024-04-05 10:27:47 +03:00
|
|
|
com/daml/daml_lf_dev/daml_lf1.proto
|
2023-11-08 22:12:03 +03:00
|
|
|
com/daml/daml_lf_dev/daml_lf2.proto
|
2024-03-06 20:47:59 +03:00
|
|
|
com/daml/ledger/api/v2/trace_context.proto
|
|
|
|
com/daml/ledger/api/v2/testing/time_service.proto
|
2023-06-05 00:00:52 +03:00
|
|
|
com/daml/ledger/api/v2/command_completion_service.proto
|
|
|
|
com/daml/ledger/api/v2/command_submission_service.proto
|
2024-03-06 20:47:59 +03:00
|
|
|
com/daml/ledger/api/v2/participant_offset.proto
|
|
|
|
com/daml/ledger/api/v2/command_service.proto
|
|
|
|
com/daml/ledger/api/v2/state_service.proto
|
2024-01-24 16:26:56 +03:00
|
|
|
com/daml/ledger/api/v2/experimental_features.proto
|
2024-03-06 20:47:59 +03:00
|
|
|
com/daml/ledger/api/v2/checkpoint.proto
|
|
|
|
com/daml/ledger/api/v2/completion.proto
|
2023-06-05 00:00:52 +03:00
|
|
|
com/daml/ledger/api/v2/package_service.proto
|
2024-03-06 20:47:59 +03:00
|
|
|
com/daml/ledger/api/v2/commands.proto
|
2023-06-05 00:00:52 +03:00
|
|
|
com/daml/ledger/api/v2/reassignment.proto
|
|
|
|
com/daml/ledger/api/v2/transaction.proto
|
|
|
|
com/daml/ledger/api/v2/version_service.proto
|
2024-03-06 20:47:59 +03:00
|
|
|
com/daml/ledger/api/v2/update_service.proto
|
|
|
|
com/daml/ledger/api/v2/transaction_filter.proto
|
|
|
|
com/daml/ledger/api/v2/value.proto
|
|
|
|
com/daml/ledger/api/v2/event_query_service.proto
|
|
|
|
com/daml/ledger/api/v2/reassignment_command.proto
|
|
|
|
com/daml/ledger/api/v2/admin/metering_report_service.proto
|
|
|
|
com/daml/ledger/api/v2/admin/participant_pruning_service.proto
|
|
|
|
com/daml/ledger/api/v2/admin/identity_provider_config_service.proto
|
|
|
|
com/daml/ledger/api/v2/admin/user_management_service.proto
|
|
|
|
com/daml/ledger/api/v2/admin/package_management_service.proto
|
|
|
|
com/daml/ledger/api/v2/admin/object_meta.proto
|
|
|
|
com/daml/ledger/api/v2/admin/party_management_service.proto
|
|
|
|
com/daml/ledger/api/v2/event.proto
|
2022-01-05 19:01:52 +03:00
|
|
|
EOF
|
2023-08-09 09:36:32 +03:00
|
|
|
) | $SORT )
|