2009-02-07 15:56:59 +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=hppa
|
2022-04-22 23:27:54 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_ed25519
|
2020-04-29 01:16:29 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/hppa
|
2009-02-07 15:56:59 +00:00
|
|
|
|
2023-11-12 02:03:24 +00:00
|
|
|
SETS="
|
2024-03-02 14:36:54 +00:00
|
|
|
hppa11_openrc_23
|
|
|
|
hppa11_systemd_23
|
|
|
|
hppa20_openrc_23
|
|
|
|
hppa20_systemd_23
|
2024-03-13 20:19:34 +00:00
|
|
|
hppa11_openrc
|
|
|
|
hppa20_openrc
|
2023-11-12 02:03:24 +00:00
|
|
|
"
|
2009-02-07 15:56:59 +00:00
|
|
|
|
2022-04-22 19:16:59 +00:00
|
|
|
SET_hppa11_openrc_SPECS="hppa1.1/stage1-openrc.spec hppa1.1/stage3-openrc.spec"
|
2022-04-25 23:25:41 +00:00
|
|
|
SET_hppa11_openrc_OPTIONAL_SPECS="installcd-stage1.spec installcd-stage2-minimal.spec netboot-hppa32.spec"
|
|
|
|
|
2022-04-22 19:04:58 +00:00
|
|
|
SET_hppa20_openrc_SPECS="hppa2.0/stage1-openrc.spec hppa2.0/stage3-openrc.spec"
|
2022-04-25 23:25:41 +00:00
|
|
|
SET_hppa20_openrc_OPTIONAL_SPECS="netboot-hppa64.spec"
|
2009-02-07 15:56:59 +00:00
|
|
|
|
2024-03-02 14:36:54 +00:00
|
|
|
SET_hppa11_openrc_23_SPECS="hppa1.1/stage1-openrc-23.spec hppa1.1/stage3-openrc-23.spec"
|
|
|
|
|
|
|
|
SET_hppa11_systemd_23_SPECS="hppa1.1/stage1-systemd-23.spec hppa1.1/stage3-systemd-23.spec"
|
|
|
|
|
|
|
|
SET_hppa20_openrc_23_SPECS="hppa2.0/stage1-openrc-23.spec hppa2.0/stage3-openrc-23.spec"
|
|
|
|
|
|
|
|
SET_hppa20_systemd_23_SPECS="hppa2.0/stage1-systemd-23.spec hppa2.0/stage3-systemd-23.spec"
|
|
|
|
|
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/hppa
|
2009-02-07 15:56:59 +00:00
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[hppa-auto]"
|
|
|
|
|
2023-03-27 19:51:43 +00:00
|
|
|
TMP_PATH=/var/tmp/catalyst/tmp
|
|
|
|
|
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 t
|
2023-12-23 21:11:15 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
|
2022-11-22 02:05:55 +00:00
|
|
|
mkdir -p "${d}"
|
2018-01-16 07:01:19 +00:00
|
|
|
pushd "${d}" >/dev/null
|
|
|
|
for t in hppa1.1 hppa2.0; do
|
2022-12-11 14:48:04 +00:00
|
|
|
for f in $(ls stage3-${t}-*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
|
|
|
|
done
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
2009-02-07 15:56:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
2018-01-16 01:52:14 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
|
|
|
case ${spec} in
|
2021-09-10 21:45:21 +00:00
|
|
|
netboot-hppa32.spec)
|
2022-11-29 09:24:08 +00:00
|
|
|
ls -l netboot-hppa1.1-${TIMESTAMP}/
|
|
|
|
mv -v netboot-hppa1.1-${TIMESTAMP}/hppa32-hppa.lif netboot-hppa1.1-${TIMESTAMP}/netboot-hppa32-${TIMESTAMP}.lif
|
2021-09-10 21:45:21 +00:00
|
|
|
upload netboot-hppa1.1-${TIMESTAMP}/netboot-hppa32-${TIMESTAMP}.lif
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2021-09-10 21:45:21 +00:00
|
|
|
netboot-hppa64.spec)
|
2022-11-29 09:24:08 +00:00
|
|
|
ls -l netboot-hppa2.0-${TIMESTAMP}/
|
|
|
|
mv -v netboot-hppa2.0-${TIMESTAMP}/hppa64-hppa.lif netboot-hppa2.0-${TIMESTAMP}/netboot-hppa64-${TIMESTAMP}.lif
|
2021-09-10 21:45:21 +00:00
|
|
|
upload netboot-hppa2.0-${TIMESTAMP}/netboot-hppa64-${TIMESTAMP}.lif
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
|
|
|
installcd-stage2-minimal.spec)
|
2018-01-16 07:01:19 +00:00
|
|
|
upload install-hppa-minimal-*${TIMESTAMP}*.iso*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2022-04-22 19:16:59 +00:00
|
|
|
hppa1.1/stage3-openrc.spec)
|
2023-08-13 18:35:52 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-hppa1.1" hppa/17.0/hppa1.1
|
2022-11-16 20:58:26 +00:00
|
|
|
;;
|
2022-04-22 18:58:58 +00:00
|
|
|
hppa2.0/stage3-openrc.spec)
|
2023-08-13 18:35:52 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-hppa2.0" hppa/17.0/hppa2.0
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2022-11-23 21:18:20 +00:00
|
|
|
esac
|
|
|
|
popd >/dev/null
|
|
|
|
|
2024-03-02 14:36:54 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-default" >/dev/null
|
|
|
|
case ${spec} in
|
2024-03-22 21:57:52 +00:00
|
|
|
hppa1.1/stage3-openrc-23.spec)
|
|
|
|
upload stage3-hppa1.1-openrc-${TIMESTAMP}.tar.xz*
|
|
|
|
;;
|
2024-03-02 14:36:54 +00:00
|
|
|
hppa1.1/stage3-systemd-23.spec)
|
2024-03-22 21:57:52 +00:00
|
|
|
upload stage3-hppa1.1-systemd-${TIMESTAMP}.tar.xz*
|
2024-03-02 14:36:54 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-hppa1.1" hppa/23.0/hppa1.1
|
|
|
|
;;
|
2024-03-22 21:57:52 +00:00
|
|
|
hppa2.0/stage3-openrc-23.spec)
|
|
|
|
upload stage3-hppa2.0-openrc-${TIMESTAMP}.tar.xz*
|
|
|
|
;;
|
2024-03-02 14:36:54 +00:00
|
|
|
hppa2.0/stage3-systemd-23.spec)
|
2024-03-22 21:57:52 +00:00
|
|
|
upload stage3-hppa2.0-systemd-${TIMESTAMP}.tar.xz*
|
2024-03-02 14:36:54 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-hppa2.0" hppa/23.0/hppa2.0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
popd >/dev/null
|
2011-01-18 04:45:27 +00:00
|
|
|
}
|