2010-09-06 17:22:38 +00:00
|
|
|
# This is the config file for the catalyst-auto script. It should be pretty
|
|
|
|
# self-explanatory.
|
|
|
|
|
2021-01-30 23:43:40 +00:00
|
|
|
UPLOAD_USER=ppc
|
2021-01-31 00:01:29 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_rsa
|
2020-04-29 01:16:29 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/ppc
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2021-07-17 06:28:33 +00:00
|
|
|
SPECS="ppc32/stage1-openrc.spec ppc32/stage3-openrc.spec ppc64/stage1-openrc.spec ppc64/stage3-openrc.spec"
|
2010-09-06 17:22:38 +00:00
|
|
|
#SPECS="${SPECS} installcd-stage1.spec installcd-stage2-minimal.spec"
|
|
|
|
#SPECS="${SPECS} stage2-desktop.spec stage3-desktop.spec"
|
|
|
|
#SPECS="${SPECS} livecd-stage1.spec livecd-stage2.spec"
|
|
|
|
|
2018-09-16 15:47:10 +00:00
|
|
|
OPTIONAL_SPECS="ppc32/installcd-stage1.spec ppc32/installcd-stage2-minimal.spec"
|
2021-07-20 13:24:15 +00:00
|
|
|
OPTIONAL_SPECS="${OPTIONAL_SPECS} ppc64/stage1-systemd.spec ppc64/stage3-systemd.spec"
|
2021-07-17 06:28:33 +00:00
|
|
|
OPTIONAL_SPECS="${OPTIONAL_SPECS} ppc64/stage1-musl-hardened-openrc.spec ppc64/stage3-musl-hardened-openrc.spec"
|
2021-05-12 23:55:07 +00:00
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/powerpc
|
2010-09-06 17:22:38 +00:00
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[ppc-auto]"
|
2018-01-16 07:01:19 +00:00
|
|
|
|
2018-01-16 01:44:31 +00:00
|
|
|
update_symlinks() {
|
2018-01-16 07:01:19 +00:00
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f
|
2021-05-31 06:18:35 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" ; do
|
2018-01-16 07:01:19 +00:00
|
|
|
pushd "${d}" >/dev/null
|
2018-09-16 15:09:38 +00:00
|
|
|
for f in $(ls stage3-ppc-*xz | grep -v latest | give_latest_from_dates) ; do
|
2018-01-16 07:01:19 +00:00
|
|
|
local of=$(echo "${f}" | convert_filename)
|
|
|
|
ln -sf "${f}" "${of}"
|
|
|
|
done
|
2018-09-16 15:23:26 +00:00
|
|
|
for f in $(ls stage3-ppc64-*xz | grep -v latest | give_latest_from_dates) ; do
|
|
|
|
local of=$(echo "${f}" | convert_filename)
|
|
|
|
ln -sf "${f}" "${of}"
|
|
|
|
done
|
2018-01-16 07:01:19 +00:00
|
|
|
popd >/dev/null
|
|
|
|
done
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
2018-01-16 01:52:14 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
2021-05-12 23:48:01 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds" >/dev/null
|
2018-01-16 01:52:14 +00:00
|
|
|
|
|
|
|
case ${spec} in
|
2018-09-17 03:26:34 +00:00
|
|
|
ppc32/installcd-stage2-minimal.spec)
|
2021-05-12 23:48:01 +00:00
|
|
|
upload default/*${TIMESTAMP}*.iso*
|
2018-09-16 15:23:26 +00:00
|
|
|
;;
|
2021-07-17 06:28:33 +00:00
|
|
|
ppc32/stage3-openrc.spec)
|
|
|
|
upload default/stage3-ppc-openrc-*${TIMESTAMP}*.xz*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2021-07-17 06:28:33 +00:00
|
|
|
ppc64/stage3-openrc.spec)
|
|
|
|
upload default/stage3-ppc64-openrc-*${TIMESTAMP}*.xz*
|
2018-09-16 15:23:26 +00:00
|
|
|
;;
|
2021-07-20 13:24:15 +00:00
|
|
|
ppc64/stage3-systemd.spec)
|
|
|
|
upload default/stage3-ppc64-systemd-*${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2021-07-17 06:28:33 +00:00
|
|
|
ppc64/stage3-musl-hardened-openrc.spec)
|
|
|
|
upload musl-hardened/stage3-ppc64-musl-hardened-openrc-*${TIMESTAMP}*.xz*
|
2021-05-12 23:55:07 +00:00
|
|
|
;;
|
2021-01-31 23:06:09 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
|
|
|
;;
|
2018-01-16 01:52:14 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|