daml/ledger-api/grpc-definitions/post-process.sh
Gary Verhaegen a925f0174c
update copyright notices for 2021 (#8257)
* update copyright notices for 2021

To be merged on 2021-01-01.

CHANGELOG_BEGIN
CHANGELOG_END

* patch-bazel-windows & da-ghc-lib
2021-01-01 19:49:51 +01:00

12 lines
583 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Fix links to external google protobuf documentation
re='s,:ref:`(\.?google\.protobuf\.[^<>`\n]*) <(.*)>`, `\1 <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#\2>`__,g'
sed -r "$re" -i docs.rst
# Fix links to external google rpc documentation
re='s,:ref:`(\.?google\.rpc\.[^<>`\n]*) <(.*)>`, `\1 <https://cloud.google.com/tasks/docs/reference/rpc/google.rpc#\2>`__,g'
sed -r "$re" -i docs.rst