Skip to content

Commit

Permalink
Remove unused //compiler/daml-licenses and //:notices-gen (digital-as…
Browse files Browse the repository at this point in the history
…set#5221)

* Remove unused da_doc_package

The only use-site was `//compiler/daml-licenses:daml-licenses`, which
itself was unused.

* Remove unused notices-gen

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
  • Loading branch information
aherrmann-da and aherrmann authored Mar 26, 2020
1 parent f0929f2 commit 40e439a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 226 deletions.
39 changes: 0 additions & 39 deletions BAZEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,45 +716,6 @@ external dependencies, then [this
document](https://github.com/digital-asset/daml/blob/master/BAZEL-haskell.md)
is for you!
## Documentation packages in Bazel
'daml-foundations' documentation resides in the DA git repository in
sub-directories of the path `//daml-foundations/daml-tools/docs`. Each
sub-directory there is a documentation "package". A documentation
package contains a `BUILD.bazel` file.
The rule for producing a documentation package under Bazel is
`da_doc_package` and it is brought into the scope of a `BUILD.bazel`
file with the following directive.
```
load ("//bazel_tools:docs.bzl", "da_doc_package")
```
### Synopsis
`da_doc_package (name, prepare, extra_sources)`
Build a documentation package.
Attributes:
- `name`
Required. A unique name for the package.
- `prepare`
Optional. If provided then it is interpreted as a bash script to be
executed on the documentation sources before the bundle generation
step (see below for what that means).
- `extra_sources`
Optional. Default value is the empty list.
The output of `da_doc_package` with name `"foo"` is a bundle
`sources.tar.gzip` in the path
`//bazel-bin/daml-foundations/daml-tools/docs/foo`. The bundle for `"foo"` would be produced with the command:
```
bazel build //daml-foundations/daml-tools/docs/foo:foo
```
The contents of the bundle will be copies of files under the directory
`//daml-foundations/daml-tools/doc/foo/sources`.
## Scala in Bazel
In this section we will provide an overview of how Scala targets are defined in
Expand Down
31 changes: 0 additions & 31 deletions bazel_tools/docs.bzl

This file was deleted.

6 changes: 0 additions & 6 deletions compiler/daml-licenses/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

load("//bazel_tools:docs.bzl", "da_doc_package")

# Export license text for inclusion into damlc.
# Export the DA SDK license for the installer
exports_files(["source/da-sdk-license.rst"])

da_doc_package(
name = "daml-licenses",
)
21 changes: 0 additions & 21 deletions notices-gen/BUILD.bazel

This file was deleted.

4 changes: 0 additions & 4 deletions notices-gen/Readme.md

This file was deleted.

125 changes: 0 additions & 125 deletions notices-gen/src/notices.hs

This file was deleted.

0 comments on commit 40e439a

Please sign in to comment.