mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-20 18:25:48 +01:00
automated: simplify log filenames dropping "-latest"
This commit is contained in:
parent
7d6d600dd0
commit
129379baac
@ -4,6 +4,6 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
|||||||
|
|
||||||
git pull
|
git pull
|
||||||
LOG_FILE="$1-build-$(date -u +%F_%T).log"
|
LOG_FILE="$1-build-$(date -u +%F_%T).log"
|
||||||
ln -sf $LOG_FILE lts-build-last.log
|
ln -sf $LOG_FILE lts-build.log
|
||||||
time script -q -c "./build.sh $*" $LOG_FILE
|
time script -q -c "./build.sh $*" $LOG_FILE
|
||||||
date
|
date
|
||||||
|
|||||||
@ -10,10 +10,10 @@ esac
|
|||||||
while true; do
|
while true; do
|
||||||
git pull
|
git pull
|
||||||
LOG_FILE="nightly-build-$(date -u +%F_%T).log"
|
LOG_FILE="nightly-build-$(date -u +%F_%T).log"
|
||||||
if [ -L nightly-build-last.log ]; then
|
if [ -L nightly-build.log ]; then
|
||||||
mv -f nightly-build-last.log nightly-build-previous.log
|
mv -f nightly-build.log nightly-build-previous.log
|
||||||
fi
|
fi
|
||||||
ln -sf $LOG_FILE nightly-build-last.log
|
ln -sf $LOG_FILE nightly-build.log
|
||||||
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
|
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
|
||||||
${cmd:+exit 0}
|
${cmd:+exit 0}
|
||||||
${once:+date; exit 0}
|
${once:+date; exit 0}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user