-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
all-versions.sh
executable file
·41 lines (36 loc) · 1.31 KB
/
all-versions.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
#!/bin/bash -e
function auto_update_versions() {
local cmd="./scripts/auto-update/version-in-file.sh"
local repo_and_files_to_update=(
# Format of an entry is
# "repo-name regex file-name [regex file-name...]"
"opentelemetry-collector-releases
vers content/en/docs/collector/_index.md
collector_vers content/en/docs/security/_index.md"
"opentelemetry-java
otel content/en/docs/languages/java/_index.md
otel content/en/docs/zero-code/java/_index.md"
"opentelemetry-java-instrumentation
instrumentation content/en/docs/languages/java/_index.md
instrumentation content/en/docs/zero-code/java/_index.md"
"opentelemetry-java-contrib
contrib content/en/docs/languages/java/_index.md"
"opentelemetry-specification
spec scripts/content-modules/adjust-pages.pl
spec .gitmodules"
"opentelemetry-proto
otlp scripts/content-modules/adjust-pages.pl
otlp .gitmodules"
"semantic-conventions
semconv scripts/content-modules/adjust-pages.pl
semconv .gitmodules"
"semantic-conventions-java
semconv content/en/docs/languages/java/_index.md"
)
for args in "${repo_and_files_to_update[@]}"; do
echo "> $cmd $args"
$cmd $args
echo
done
}
auto_update_versions