diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2019-04-09 18:52:40 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-04-09 18:52:57 -0400 |
commit | b5afdc366e209df26c47f086dc99fa15ab38e153 (patch) | |
tree | f0d5ebb9d34210810833ce829bc84a3463c5a557 | |
parent | tools-uclibc: keyword =sys-apps/iproute2-4.19.0-r1 for ppc (diff) | |
download | releng-b5afdc36.tar.gz releng-b5afdc36.tar.bz2 releng-b5afdc36.zip |
tools-systemd: add scripts for arm64
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rwxr-xr-x | tools-systemd/run-arm64.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools-systemd/run-arm64.sh b/tools-systemd/run-arm64.sh new file mode 100755 index 00000000..41c4afc8 --- /dev/null +++ b/tools-systemd/run-arm64.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source common.sh + +prepare_confs() { + local arch=$1 + + for s in 1 2 3; do + + local cstage=stage${s} + local p=$(( s - 1 )) + [[ $p == 0 ]] && p=3 + local pstage=stage${p} + local repo_dir="$( dirname $(pwd) )" + local template="stage-all.conf.template" + local parch="${arch}" + + cat ${template} | \ + sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \ + -e "s:CSTAGE:${cstage}:g" \ + -e "s:PSTAGE:${pstage}:g" \ + -e "s:SARCH:${arch}:g" \ + -e "s:PARCH:${parch}:g" \ + -e "s:@REPO_DIR@:${repo_dir}:g" \ + -e "s:MYCATALYST:$(pwd):g" \ + > stage${s}-${arch}-systemd.conf + done +} + + +main() { + >zzz.log + + undo_grsec + + catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err + + for arch in arm64; do + prepare_confs ${arch} + done + + for arch in arm64; do + do_stages ${arch} + [[ $? == 1 ]] && echo "FAILURE at ${arch}" | tee zzz.log + done + +} + +main $1 & |