From 49dccd607e43045f333840744e94f7ab99712d34 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 13 Aug 2011 21:22:49 +0200 Subject: [PATCH] config/functions: create $BUILD_DATE variable once Signed-off-by: Stephan Raue --- config/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/functions b/config/functions index ea4ebc1e1d..36f4fd40f5 100644 --- a/config/functions +++ b/config/functions @@ -115,8 +115,9 @@ add_group() { } get_version() { - - BUILD_DATE=`date +%Y%m%d%H%M%S` + if [ -z "$BUILD_DATE" ]; then + BUILD_DATE=`date +%Y%m%d%H%M%S` + fi if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then GIT_BUILD=`git log --pretty=format:'' | wc -l`