From 97ddd9526c2835c3b066b2d1e80bf8f9cec6042a Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 20 Oct 2017 21:24:29 -0400 Subject: [PATCH] comments, allow overriding LOGDATE --- libretro-buildbot-recipe.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 5361ec82..c304e32c 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -2,7 +2,9 @@ # vim: set ts=3 sw=3 noet ft=sh : bash # ----- setup ----- -LOGDATE=`date +%Y-%m-%d` +# This will use an overridden value from the command-line if provided, otherwise just use the current date +LOGDATE=${LOGDATE:-`date +%Y-%m-%d`} + ORIGPATH=$PATH WORK=$PWD RECIPE=$1 @@ -275,6 +277,7 @@ buildbot_handle_message() { echo buildbot job: $MESSAGE buildbot_log "$MESSAGE" + # used by Travis-CI to exit immediately if a core build fails, instead of trying to build RA anyways (for static/console builds) if [ "$EXIT_ON_ERROR" = "1" ]; then exit 1 fi