From 808fb07903138717e205dba72492f6f66ba66c9d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 18 Feb 2026 19:33:48 +0800 Subject: [PATCH] automated: add latest symlinks for nightly and lts logs --- automated/build.sh | 5 ----- automated/run-lts.sh | 4 +++- automated/run-nightly.sh | 4 +++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/automated/build.sh b/automated/build.sh index 059a2b1d..2ae32c71 100755 --- a/automated/build.sh +++ b/automated/build.sh @@ -150,11 +150,6 @@ case $SHORTNAME in nightly) JOBS=16 ;; esac -if [ -e "$SHORTNAME-build.log" ] -then - cp -p $SHORTNAME-build.log $SHORTNAME-build.log-previous -fi - # Now do the actual build. We need to first set the owner of the home directory # correctly, so we run the command as root, change owner, and then use sudo to # switch back to the current user diff --git a/automated/run-lts.sh b/automated/run-lts.sh index 08e67045..04f57c6a 100755 --- a/automated/run-lts.sh +++ b/automated/run-lts.sh @@ -3,5 +3,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" git pull -time script -q -c "./build.sh $*" $1-build-$(date -u +%F_%T).log +LOG_FILE="$1-build-$(date -u +%F_%T).log" +time script -q -c "./build.sh $*" $LOG_FILE +ln -sf $LOG_FILE lts-build-last.log date diff --git a/automated/run-nightly.sh b/automated/run-nightly.sh index a3976b45..43b94ad6 100755 --- a/automated/run-nightly.sh +++ b/automated/run-nightly.sh @@ -9,10 +9,12 @@ esac while true; do git pull - time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" nightly-build-$(date -u +%F_%T).log + LOG_FILE="nightly-build-$(date -u +%F_%T).log" + time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" ${cmd:+exit 0} ${once:+date; exit 0} echo "$0: run completed at $(date)" + ln -sf $LOG_FILE nightly-build-last.log echo sleep 99m echo