# This is the config file for the catalyst-auto script. It should be pretty # self-explanatory. UPLOAD_USER=amd64 UPLOAD_KEY=/root/.ssh/id_rsa host=$(hostname) EMAIL_SUBJECT_PREPEND="[amd64-auto]" SPECS_DIR=${REPO_DIR}/releases/specs/amd64 SETS=" openrc systemd systemd_mu livegui nomultilib_openrc nomultilib_systemd llvm_openrc llvm_systemd hardened_openrc hardened_nomultilib_openrc hardened_selinux_openrc hardened_nomultilib_selinux_openrc musl musl_hardened musl_llvm x32_openrc " SET_openrc_SPECS="stage1-openrc.spec stage3-openrc.spec" SET_openrc_OPTIONAL_SPECS="stage3d-openrc.spec installcd-stage1.spec installcd-stage2-minimal.spec" SET_livegui_OPTIONAL_SPECS="livegui/livegui-stage1.spec livegui/livegui-stage2.spec" SET_systemd_SPECS="stage1-systemd.spec stage3-systemd.spec" SET_systemd_OPTIONAL_SPECS="stage3d-systemd.spec" SET_systemd_mu_SPECS="stage1-systemd-mu.spec stage3-systemd-mu.spec" SET_hardened_openrc_SPECS="hardened/stage1-openrc.spec hardened/stage3-openrc.spec" SET_hardened_openrc_OPTIONAL_SPECS="hardened/admincd-stage1.spec hardened/admincd-stage2.spec" SET_hardened_selinux_openrc_SPECS="hardened-selinux/stage1-openrc.spec hardened-selinux/stage3-openrc.spec" SET_hardened_nomultilib_selinux_openrc_SPECS="hardened-nomultilib-selinux/stage1-openrc.spec hardened-nomultilib-selinux/stage3-openrc.spec" SET_hardened_nomultilib_openrc_SPECS="hardened-nomultilib/stage1-openrc.spec hardened-nomultilib/stage3-openrc.spec" SET_nomultilib_openrc_SPECS="nomultilib/stage1-openrc.spec nomultilib/stage3-openrc.spec" SET_nomultilib_systemd_SPECS="nomultilib/stage1-systemd.spec nomultilib/stage3-systemd.spec" SET_llvm_openrc_SPECS="clang/stage1-openrc.spec clang/stage3-openrc.spec" SET_llvm_systemd_SPECS="clang/stage1-systemd.spec clang/stage3-systemd.spec" SET_musl_SPECS="musl/stage1.spec musl/stage3.spec" SET_musl_llvm_SPECS="musl-clang/stage1.spec musl-clang/stage3.spec" SET_musl_hardened_SPECS="musl-hardened/stage1.spec musl-hardened/stage3.spec" SET_x32_openrc_SPECS="x32/stage1-openrc.spec x32/stage3-openrc.spec" KCONFIG_DIR=${REPO_DIR}/releases/kconfig/amd64 EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)" update_symlinks() { # Symlink the latest stages3 to build from for d in ${BUILD_SRCDIR_BASE}/builds/{default,clang,hardened,musl,musl-clang,musl-hardened} ; do pushd "${d}" >/dev/null || exit shopt -s extglob for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do # 20yymmddThhmmssZ # 20yymmddhhmmss # 20yymmdd # 20yy.n of=$(perl -p \ -e 's/20\d{6}T\d{6}Z/latest/g;' \ -e 's/20\d{6}\d{6}/latest/g;' \ -e 's/20\d{6}/latest/g;' \ -e 's/20\d{2}\.\d{2}/latest/g;' \ <<<"$f") ln -sf "$f" "$of" done popd >/dev/null || exit done } post_build() { local set=$1 spec=$2 pushd "${BUILD_SRCDIR_BASE}"/builds/default >/dev/null || exit case ${spec} in stage3-openrc.spec) upload stage3-amd64-openrc-${TIMESTAMP}.tar.xz* ;; stage3-systemd.spec) upload stage3-amd64-systemd-${TIMESTAMP}.tar.xz* ;; stage3-systemd-mu.spec) upload stage3-amd64-systemd-mergedusr-${TIMESTAMP}.tar.xz* ;; stage3d-openrc.spec) upload stage3-amd64-desktop-openrc-${TIMESTAMP}.tar.xz* ;; stage3d-systemd.spec) upload stage3-amd64-desktop-systemd-${TIMESTAMP}.tar.xz* ;; installcd-stage2-minimal.spec) upload install-amd64-minimal-${TIMESTAMP}.iso* ;; nomultilib/stage3-openrc.spec) upload stage3-amd64-nomultilib-openrc-${TIMESTAMP}.tar.xz* ;; nomultilib/stage3-systemd.spec) upload stage3-amd64-nomultilib-systemd-${TIMESTAMP}.tar.xz* ;; x32/stage3-openrc.spec) upload stage3-x32-openrc-${TIMESTAMP}.tar.xz* ;; livegui/livegui-stage2.spec) upload livegui-amd64-${TIMESTAMP}.iso* ;; esac popd >/dev/null || exit pushd "${BUILD_SRCDIR_BASE}"/builds/clang >/dev/null || exit case ${spec} in clang/stage3-openrc.spec) upload stage3-amd64-llvm-openrc-${TIMESTAMP}.tar.xz* ;; clang/stage3-systemd.spec) upload stage3-amd64-llvm-systemd-${TIMESTAMP}.tar.xz* ;; esac popd >/dev/null || exit pushd "${BUILD_SRCDIR_BASE}"/builds/hardened >/dev/null || exit case ${spec} in hardened/stage3-openrc.spec) upload stage3-amd64-hardened-openrc-${TIMESTAMP}.tar.xz* ;; hardened/admincd-stage2.spec) upload admincd-amd64-${TIMESTAMP}.iso* ;; hardened-nomultilib/stage3-openrc.spec) upload stage3-amd64-hardened-nomultilib-openrc-${TIMESTAMP}.tar.xz* ;; hardened-selinux/stage3-openrc.spec) upload stage3-amd64-hardened-selinux-openrc-${TIMESTAMP}.tar.xz* ;; hardened-nomultilib-selinux/stage3-openrc.spec) upload stage3-amd64-hardened-nomultilib-selinux-openrc-${TIMESTAMP}.tar.xz* ;; esac popd >/dev/null || exit pushd "${BUILD_SRCDIR_BASE}"/builds/musl >/dev/null || exit case ${spec} in musl/stage3.spec) upload stage3-amd64-musl-${TIMESTAMP}.tar.xz* ;; esac popd >/dev/null || exit pushd "${BUILD_SRCDIR_BASE}"/builds/musl-clang >/dev/null || exit case ${spec} in musl-clang/stage3.spec) upload stage3-amd64-musl-llvm-${TIMESTAMP}.tar.xz* ;; esac popd >/dev/null || exit pushd "${BUILD_SRCDIR_BASE}"/builds/musl-hardened >/dev/null || exit case ${spec} in musl-hardened/stage3.spec) upload stage3-amd64-musl-hardened-${TIMESTAMP}.tar.xz* ;; esac popd >/dev/null || exit } # vim:ft=sh: