Skip to content

Commit 4b89764

Browse files
authored
automatically create README.JAVASE file in new repos (#51)
* Allow branch to be overridden by an env var This is required for the jdk11u risc-v port mirror which doesn't use the master branch * cleanup redundant mercurial scripts * add common.sh script back * automatically create README.JAVASE file in new repos
1 parent 1193355 commit 4b89764

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

patches/readme-javase.patch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From d274f1fb6e2a32e873003ebf79753909a513f83d Mon Sep 17 00:00:00 2001
2+
From: Stewart X Addison <sxa@redhat.com>
3+
Date: Mon, 8 Apr 2024 15:45:06 +0000
4+
Subject: [PATCH] Adoptium JAVASE marker
5+
6+
---
7+
README.JAVASE | 18 ++++++++++++++++++
8+
1 file changed, 18 insertions(+)
9+
create mode 100644 README.JAVASE
10+
11+
diff --git a/README.JAVASE b/README.JAVASE
12+
new file mode 100644
13+
index 00000000000..79a5d204434
14+
--- /dev/null
15+
+++ b/README.JAVASE
16+
@@ -0,0 +1,18 @@
17+
+Do NOT remove or modify this file.
18+
+
19+
+The following notice is required to be included in the root directory of source
20+
+code repositories.
21+
+
22+
+This version of Eclipse Temurin source code is made available in support of the
23+
+open source development process. Some numbered or tagged revisions of this
24+
+source may have been tested and found to pass the Java SE TCK, and you can find
25+
+information on which revisions or tags at https://www.adoptium.net.
26+
+Please note that since only binaries can be tested, source code cannot be
27+
+described as a compatible implementation of the Java SE Specification. The
28+
+different build environment on your machine and any changes you may make to this
29+
+code could render your resulting build incompatible. Because of this, writing or
30+
+deploying applications to builds based on this code can lead to lack of
31+
+portability. You should instead consider deploying production applications on
32+
+the pre-built binaries of Eclipse Temurin that are available at
33+
+https://www.adoptium.net that have been tested and certified to meet the Java SE
34+
+compatibility requirements.

skaraMirror.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ function performMergeIntoReleaseFromMaster() {
108108
fi
109109
fi
110110

111+
# README.JAVASE patch needed for all repos
112+
if [ ! -f "$WORKSPACE/$GITHUB_REPO/README.JAVASE" ]; then
113+
echo "Applying README.JAVASE.patch"
114+
git am $PATCHES/readme-javase.patch
115+
fi
116+
111117
# Find the latest release tag that is not in releaseTagExcludeList
112118
releaseTags=$(git tag --merged release $TAG_SEARCH || exit 1)
113119
sortedReleaseTags=$(echo "$releaseTags" | eval "$jdk_sort_tags_cmd" || exit 1)

0 commit comments

Comments
 (0)