2021-08-22 10:00:37 +00:00
|
|
|
# This is the config file for the catalyst-auto script. It should be pretty
|
|
|
|
# self-explanatory.
|
|
|
|
|
|
|
|
UPLOAD_USER=m68k
|
|
|
|
UPLOAD_KEY=/root/.ssh/id_rsa
|
|
|
|
|
|
|
|
host=$(hostname)
|
|
|
|
|
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/m68k
|
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[m68k-qemu-auto]"
|
|
|
|
|
|
|
|
SETS="
|
2023-07-21 19:16:39 +00:00
|
|
|
musl
|
2021-08-22 10:00:37 +00:00
|
|
|
openrc
|
2022-11-17 01:52:59 +00:00
|
|
|
systemd_mu
|
2023-12-15 18:37:45 +00:00
|
|
|
openrc_23
|
|
|
|
systemd_23
|
2021-08-22 10:00:37 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
SET_openrc_SPECS="stage1-openrc.spec stage3-openrc.spec"
|
2022-11-17 01:52:59 +00:00
|
|
|
SET_systemd_mu_SPECS="stage1-systemd-mu.spec stage3-systemd-mu.spec"
|
2023-07-21 19:16:39 +00:00
|
|
|
SET_musl_SPECS="stage1-musl.spec stage3-musl.spec"
|
2021-08-22 10:00:37 +00:00
|
|
|
|
2023-12-15 18:37:45 +00:00
|
|
|
SET_openrc_23_SPECS="stage1-openrc-23.spec stage3-openrc-23.spec"
|
|
|
|
SET_systemd_23_SPECS="stage1-systemd-23.spec stage3-systemd-23.spec"
|
|
|
|
SET_musl_23_SPECS="stage1-musl-23.spec stage3-musl-23.spec"
|
|
|
|
|
2021-08-22 10:00:37 +00:00
|
|
|
update_symlinks() {
|
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f
|
2023-12-15 18:37:45 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
|
2022-11-22 02:05:55 +00:00
|
|
|
mkdir -p "${d}"
|
2021-08-22 10:00:37 +00:00
|
|
|
pushd "${d}" >/dev/null
|
|
|
|
for f in $(ls stage3*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
|
|
|
|
|
|
|
|
case ${spec} in
|
2022-11-17 01:52:59 +00:00
|
|
|
stage3-openrc.spec)
|
2021-08-22 10:00:37 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
2022-11-17 01:52:59 +00:00
|
|
|
upload stage3-m68k-openrc-${TIMESTAMP}*.xz*
|
2023-08-12 18:18:21 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-m68k" m68k/17.0/m68k
|
2022-11-17 01:52:59 +00:00
|
|
|
popd >/dev/null
|
|
|
|
;;
|
|
|
|
stage3-systemd-mu.spec)
|
2022-11-23 22:53:41 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/mergedusr" >/dev/null
|
2022-11-17 01:52:59 +00:00
|
|
|
upload stage3-m68k-systemd-mergedusr-${TIMESTAMP}*.xz*
|
2021-08-22 10:00:37 +00:00
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2023-07-21 19:16:39 +00:00
|
|
|
stage3-musl.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
|
|
|
|
upload stage3-m68k_musl-${TIMESTAMP}*.xz*
|
2023-08-12 18:18:21 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl/stage3-m68k_musl" m68k/17.0/m68k_musl
|
2023-07-21 19:16:39 +00:00
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2023-12-15 18:37:45 +00:00
|
|
|
stage3-openrc-23.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-default" >/dev/null
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
|
|
|
stage3-systemd-23.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-default" >/dev/null
|
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-m68k" m68k/23.0/m68k
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
|
|
|
stage3-musl-23.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-musl" >/dev/null
|
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl/stage3-m68k_musl" m68k/23.0/m68k_musl
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2021-08-22 10:00:37 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|