2008-09-04 01:18:17 +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=amd64
|
2021-01-31 00:01:29 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_rsa
|
2012-10-13 04:06:36 +00:00
|
|
|
host=$(hostname)
|
|
|
|
|
2021-02-01 04:03:24 +00:00
|
|
|
ARCH="amd64"
|
|
|
|
TYPE="auto"
|
2012-10-13 04:06:36 +00:00
|
|
|
source /etc/catalyst/release/build.env
|
2011-09-15 23:17:45 +00:00
|
|
|
|
2021-01-30 23:30:16 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/amd64
|
2008-11-29 02:15:02 +00:00
|
|
|
|
2021-07-10 17:53:46 +00:00
|
|
|
SETS=""
|
|
|
|
SPECS="nosuchfile.spec"
|
2013-04-20 15:18:55 +00:00
|
|
|
|
2021-01-30 23:30:16 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/amd64
|
2008-09-04 12:44:33 +00:00
|
|
|
|
2020-08-12 15:43:54 +00:00
|
|
|
EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
|
2015-12-27 02:37:12 +00:00
|
|
|
|
2016-05-05 10:07:20 +00:00
|
|
|
update_symlinks() {
|
2012-06-27 23:58:05 +00:00
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
2020-05-15 12:40:02 +00:00
|
|
|
pushd "${d}" >/dev/null || exit
|
2020-08-12 15:43:54 +00:00
|
|
|
shopt -s extglob
|
2015-12-27 02:37:12 +00:00
|
|
|
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
|
2017-12-08 07:40:09 +00:00
|
|
|
# 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;' \
|
2017-12-08 08:04:40 +00:00
|
|
|
-e 's/20\d{6}/latest/g;' \
|
2017-12-08 07:40:09 +00:00
|
|
|
-e 's/20\d{2}\.\d{2}/latest/g;' \
|
|
|
|
<<<"$f")
|
2017-12-15 03:39:33 +00:00
|
|
|
ln -svf "$f" "$of"
|
2012-06-27 23:58:05 +00:00
|
|
|
done
|
2020-05-15 12:40:02 +00:00
|
|
|
popd >/dev/null || exit
|
2012-06-27 23:58:05 +00:00
|
|
|
done
|
2008-09-28 04:43:08 +00:00
|
|
|
}
|
2008-12-02 22:46:21 +00:00
|
|
|
|
|
|
|
post_build() {
|
2020-05-15 12:40:02 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}"/hardened >/dev/null || exit
|
2021-01-31 01:00:37 +00:00
|
|
|
UPLOAD_DEST=${BUILD_DESTDIR_BASE}/hardened
|
2020-05-15 12:40:02 +00:00
|
|
|
case ${spec} in
|
|
|
|
hardened/stage4-minimal.spec)
|
2020-05-15 17:34:12 +00:00
|
|
|
upload stage4-amd64-hardened+minimal-${TIMESTAMP}.tar.xz*
|
2020-05-15 12:40:02 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
popd >/dev/null || exit
|
2008-12-02 22:46:21 +00:00
|
|
|
}
|
|
|
|
|
2011-01-14 05:53:24 +00:00
|
|
|
# vim:ft=sh:
|