stackage/automated/run-lts.sh
Jens Petersen 979d1a6fe9
Some checks are pending
check / Stackage check (push) Waiting to run
automated: use 24 hour time (with C locale date's)
hopefully easier since server is using UTC
2026-04-07 00:09:58 +08:00

14 lines
294 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
git pull
LOG_FILE="logs/$1-build-$(date -u +%F+%T).log"
if [ -L $1-build.log ]; then
mv -f $1-build.log $1-build.log-prev
fi
ln -sf $LOG_FILE lts-build.log
time script -c "./build.sh $*" $LOG_FILE
touch -h lts-build.log
LANG=C date