aboutsummaryrefslogtreecommitdiff
blob: bb93275a7b69c38666854f3569ce55c49b545645 (plain)
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
63
64
65
66
67
68
69
# This is the config file for the catalyst-auto script. It should be pretty
# self-explanatory.

UPLOAD_USER=sparc
UPLOAD_KEY=/root/.ssh/id_ed25519
SPECS_DIR=${REPO_DIR}/releases/specs/sparc

SETS="
	openrc_32_23
	systemd_32_23
	openrc_64_23
	systemd_64_23
"

SET_openrc_32_23_SPECS="sparc/stage1-openrc-23.spec sparc/stage3-openrc-23.spec"
SET_systemd_32_23_SPECS="sparc/stage1-systemd-23.spec sparc/stage3-systemd-23.spec"

SET_openrc_64_23_SPECS="sparc64/stage1-openrc-23.spec sparc64/stage3-openrc-23.spec"
SET_openrc_64_23_OPTIONAL_SPECS="sparc64/installcd-stage1.spec sparc64/installcd-stage2-minimal.spec"
SET_systemd_64_23_SPECS="sparc64/stage1-systemd-23.spec sparc64/stage3-systemd-23.spec"


KCONFIG_DIR=${REPO_DIR}/releases/kconfig/sparc

EMAIL_SUBJECT_PREPEND="[sparc-auto]"

update_symlinks() {
	# Symlink the latest stages3 to build from
	local d f
	for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
		mkdir -p "${d}"
		pushd "${d}" >/dev/null
		for f in $(ls stage3-sparc-*xz | grep -v latest | give_latest_from_dates) ; do
			local of=$(echo "${f}" | convert_filename)
			ln -sf "${f}" "${of}"
		done
		for f in $(ls stage3-sparc64-*xz | grep -v latest | give_latest_from_dates) ; do
			local of=$(echo "${f}" | convert_filename)
			ln -sf "${f}" "${of}"
		done
		popd >/dev/null
	done
}

post_build() {
	local set=$1 spec=$2

	pushd "${BUILD_SRCDIR_BASE}/builds/23.0-default" >/dev/null
	case ${spec} in
	sparc/stage3-openrc-23.spec)
		upload stage3-sparc-openrc-${TIMESTAMP}*.xz*
		;;
	sparc/stage3-systemd-23.spec)
		upload stage3-sparc-systemd-${TIMESTAMP}*.xz*
		upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-sparc" sparc/23.0/32
		;;
	sparc64/stage3-openrc-23.spec)
		upload stage3-sparc64-openrc-${TIMESTAMP}*.xz*
		;;
	sparc64/stage3-systemd-23.spec)
		upload stage3-sparc64-systemd-${TIMESTAMP}*.xz*
		upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-sparc64" sparc/23.0/64
		;;
	sparc64/installcd-stage2-minimal.spec)
		upload *${TIMESTAMP}*.iso*
		;;
	esac
	popd >/dev/null
}