forked from bazelbuild/rules_apple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate-notes.sh
executable file
·62 lines (43 loc) · 1.18 KB
/
generate-notes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -euo pipefail
readonly new_version=$1
readonly release_archive="rules_apple.$new_version.tar.gz"
sha=$(shasum -a 256 "$release_archive" | cut -d " " -f1)
cat <<EOF
## What's Changed
TODO
This release is compatible with: TODO
## MODULE.bazel Snippet
\`\`\`bzl
bazel_dep(name = "rules_apple", version = "$new_version", repo_name = "build_bazel_rules_apple")
\`\`\`
## Workspace Snippet
\`\`\`bzl
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_apple",
sha256 = "$sha",
url = "https://github.com/bazelbuild/rules_apple/releases/download/$new_version/rules_apple.$new_version.tar.gz",
)
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
\`\`\`
EOF