Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/releng:master commit in: tools/
Date: Sun, 22 Aug 2021 10:10:39
Message-Id: 1629626437.0f6bdfa8120d87bf11438d6ec092d74a346d35d1.dilfridge@gentoo
1 commit: 0f6bdfa8120d87bf11438d6ec092d74a346d35d1
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 10:00:37 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 10:00:37 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=0f6bdfa8
7
8 Add m68k catalyst-auto config
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 tools/catalyst-auto-qemu-m68k.conf | 45 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 45 insertions(+)
14
15 diff --git a/tools/catalyst-auto-qemu-m68k.conf b/tools/catalyst-auto-qemu-m68k.conf
16 new file mode 100644
17 index 00000000..6129a2bf
18 --- /dev/null
19 +++ b/tools/catalyst-auto-qemu-m68k.conf
20 @@ -0,0 +1,45 @@
21 +# This is the config file for the catalyst-auto script. It should be pretty
22 +# self-explanatory.
23 +
24 +UPLOAD_USER=m68k
25 +UPLOAD_KEY=/root/.ssh/id_rsa
26 +
27 +host=$(hostname)
28 +
29 +SPECS_DIR=${REPO_DIR}/releases/specs-qemu/m68k
30 +
31 +EMAIL_SUBJECT_PREPEND="[m68k-qemu-auto]"
32 +
33 +SETS="
34 + openrc
35 +"
36 +
37 +SET_openrc_SPECS="stage1-openrc.spec stage3-openrc.spec"
38 +
39 +update_symlinks() {
40 + # Symlink the latest stages3 to build from
41 + local d f
42 + for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
43 + pushd "${d}" >/dev/null
44 + for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
45 + local of=$(echo "${f}" | convert_filename)
46 + ln -sf "${f}" "${of}"
47 + done
48 + popd >/dev/null
49 + done
50 +}
51 +
52 +post_build() {
53 + local set=$1 spec=$2
54 +
55 + case ${spec} in
56 + stage3*.spec)
57 + pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
58 + upload stage3-m68k-$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
59 + popd >/dev/null
60 + ;;
61 + *)
62 + echo "Finished ${spec}"
63 + ;;
64 + esac
65 +}