From eb99a95b94aa3f8d17676c0b46576cf8bf01d2c2 Mon Sep 17 00:00:00 2001 From: Rudy Hardeman Date: Sun, 27 Nov 2016 13:12:01 +0100 Subject: [PATCH] Fixed some things in building tellus --- .gitlab-ci.yml | 3 +++ UpdateLog.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b03a128..cb84212 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ debian_amd64: stage: build script: + - ./UpdateLog.sh - make debian-package - mkdir build - cp ../tellusagent*.deb build/ @@ -17,6 +18,7 @@ debian_amd64: debian_386: stage: build script: + - ./UpdateLog.sh - ARCH=i386 make debian-package - mkdir build - cp ../tellusagent*.deb build/ @@ -33,6 +35,7 @@ debian_386: debian_armhf: stage: build script: + - ./UpdateLog.sh - make debian-package - cp ../tellusagent*.deb . - rm ../tellusagent* diff --git a/UpdateLog.sh b/UpdateLog.sh index 4285dc8..fcaf144 100755 --- a/UpdateLog.sh +++ b/UpdateLog.sh @@ -1,7 +1,8 @@ #!/bin/bash FILE=$(mktemp) -VERSION=$(grep -o -E "[0-9]+" Version.h) +#VERSION=$(grep -o -E "[0-9]+" Version.h) +VERSION=$(date +"%Y%m%d-%H%M%S") DATE=$(date +"%a, %d %b %Y %H:%M:%S %z") echo "tellusagent (${VERSION}) none; urgency=low" >> ${FILE}