daml/docs/scripts/copy-assembly.sh
Gary Verhaegen 151e12b81a
bump copyright (#16002)
This is the result of:

- Updating `./COPY` to say `2023`.
- Running `./dev-env/bin/dade-copyright-headers update .`
2023-01-04 18:21:15 +01:00

21 lines
756 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -eou pipefail
SCRIPT_DIR=$PWD/$(dirname "$0")
BAZEL_BIN="$SCRIPT_DIR/../../bazel-bin"
SDK_VERSION=${DAML_SDK_RELEASE_VERSION:-0.0.0}
if [ "$#" -ne 1 ]; then
echo "Expected exactly one argument to specify the target directory"
exit 1
fi
bazel build //docs:sphinx-source-tree //docs:pdf-fonts-tar //docs:non-sphinx-html-docs
cp -f $BAZEL_BIN/docs/sphinx-source-tree.tar.gz $1/sphinx-source-tree-$SDK_VERSION.tar.gz
cp -f $BAZEL_BIN/docs/non-sphinx-html-docs.tar.gz $1/non-sphinx-html-docs-$SDK_VERSION.tar.gz
cp -f $BAZEL_BIN/docs/pdf-fonts-tar.tar.gz $1/pdf-fonts-$SDK_VERSION.tar.gz