2008-11-30 15:49:24 +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=sparc
|
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/sparc
|
2019-01-04 16:33:17 +00:00
|
|
|
|
2019-09-01 16:56:30 +00:00
|
|
|
SPECS="sparc/stage1.spec sparc/stage3.spec sparc/systemd-stage1.spec sparc/systemd-stage3.spec sparc64/stage1.spec sparc64/stage3.spec sparc64/systemd-stage1.spec sparc64/systemd-stage3.spec"
|
2019-08-29 17:38:11 +00:00
|
|
|
OPTIONAL_SPECS="sparc64/installcd-stage1.spec sparc64/installcd-stage2-minimal.spec"
|
2019-01-04 22:50:59 +00:00
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/sparc
|
2019-01-04 16:33:17 +00:00
|
|
|
|
2019-08-29 17:38:11 +00:00
|
|
|
EMAIL_SUBJECT_PREPEND="[sparc-auto]"
|
2018-12-31 22:42:11 +00:00
|
|
|
|
2018-01-16 01:44:31 +00:00
|
|
|
update_symlinks() {
|
2019-01-09 17:18:48 +00:00
|
|
|
# Symlink the latest stages3 to build from
|
2019-08-29 17:38:11 +00:00
|
|
|
local d f
|
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
|
|
|
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}"
|
2019-01-09 17:18:48 +00:00
|
|
|
done
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
2008-11-30 15:49:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
2019-01-08 17:02:26 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
2019-08-29 17:38:11 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
2019-01-08 17:02:26 +00:00
|
|
|
|
|
|
|
case ${spec} in
|
2019-08-29 17:38:11 +00:00
|
|
|
sparc64/installcd-stage2-minimal.spec)
|
|
|
|
upload *${TIMESTAMP}*.iso*
|
|
|
|
;;
|
|
|
|
sparc/stage3.spec)
|
2019-09-02 17:29:13 +00:00
|
|
|
upload stage3-sparc-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
|
|
|
sparc/systemd-stage3.spec)
|
|
|
|
upload stage3-sparc-systemd-${TIMESTAMP}*.xz*
|
2019-01-08 17:02:26 +00:00
|
|
|
;;
|
2019-08-29 17:38:11 +00:00
|
|
|
sparc64/stage3.spec)
|
2019-09-02 17:29:13 +00:00
|
|
|
upload stage3-sparc64-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
|
|
|
sparc64/systemd-stage3.spec)
|
|
|
|
upload stage3-sparc64-systemd-${TIMESTAMP}*.xz*
|
2019-01-08 17:02:26 +00:00
|
|
|
;;
|
2021-01-31 23:06:09 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
|
|
|
;;
|
2019-01-08 17:02:26 +00:00
|
|
|
esac
|
|
|
|
|
2019-08-29 17:38:11 +00:00
|
|
|
popd >/dev/null
|
2008-11-30 15:49:24 +00:00
|
|
|
}
|