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-05-30 13:45:41 +00:00
|
|
|
systemd
|
2022-11-17 01:52:59 +00:00
|
|
|
systemd_mu
|
2021-08-22 10:00:37 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
SET_openrc_SPECS="stage1-openrc.spec stage3-openrc.spec"
|
2022-05-30 13:45:41 +00:00
|
|
|
SET_systemd_SPECS="stage1-systemd.spec stage3-systemd.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
|
|
|
|
|
|
|
update_symlinks() {
|
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f
|
2023-07-21 19:16:39 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/mergedusr" "${BUILD_SRCDIR_BASE}/builds/musl" ; 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*
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
|
|
|
stage3-systemd.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
|
|
|
upload stage3-m68k-systemd-${TIMESTAMP}*.xz*
|
|
|
|
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*
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2021-08-22 10:00:37 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|