2010-09-06 17:22:38 +00:00
|
|
|
# This is the config file for the catalyst-auto script. It should be pretty
|
|
|
|
# self-explanatory.
|
|
|
|
|
2018-09-16 15:23:26 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/weekly/specs/ppc
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2018-09-16 15:23:26 +00:00
|
|
|
SPECS="ppc32/stage1.spec ppc32/stage3.spec ppc64/stage1.spec ppc64/stage3.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"
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2016-05-20 02:17:41 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/weekly/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
|
2018-09-16 15:23:26 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; 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
|
|
|
}
|
2018-01-16 01:52:14 +00:00
|
|
|
|
|
|
|
upload() {
|
2020-04-23 07:14:11 +00:00
|
|
|
rsync -e 'ssh -i /root/.ssh/id_rsa' "$@" ppc@releng-incoming.gentoo.org:
|
2018-01-16 01:52:14 +00:00
|
|
|
}
|
2010-09-06 17:22:38 +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
|
2018-09-17 03:26:34 +00:00
|
|
|
ppc32/installcd-stage2-minimal.spec)
|
2018-09-16 15:23:26 +00:00
|
|
|
upload *${TIMESTAMP}*.iso*
|
|
|
|
;;
|
2018-09-17 03:26:34 +00:00
|
|
|
ppc32/stage3.spec)
|
2018-09-16 15:09:38 +00:00
|
|
|
upload stage3-ppc-*${TIMESTAMP}*.xz*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2018-09-16 15:23:26 +00:00
|
|
|
ppc64/stage3.spec)
|
|
|
|
upload stage3-ppc64-*${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2018-01-16 01:52:14 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|