config/functions: create $BUILD_DATE variable once

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-08-13 21:22:49 +02:00
parent 7570a479e0
commit 49dccd607e

View File

@ -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`