From 1a4b4d6d7b9cc5bab154701c257fc59395925ba7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Mon, 3 Dec 2018 09:25:14 +0100
Subject: [PATCH] generate_lists: add turris-version and git-hash

---
 generate_lists | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/generate_lists b/generate_lists
index 9f1cb9a3c..728b0fbe1 100755
--- a/generate_lists
+++ b/generate_lists
@@ -80,6 +80,9 @@ tb="$(dirname "$(readlink -f "$0")")"
 rm -rf "$output_path"
 mkdir -p "$output_path"
 
+"$tb/helpers/turris-version.sh" version > "$output_path/turris-version"
+( cd "$tb" && git rev-parse HEAD > "$output_path/git-hash" )
+
 m4args=( "--include=$tb/lists" "-D_INCLUDE_=$tb/lists/" "-D_FEEDS_=$tb/feeds.conf" "-D_BRANCH_=$branch" )
 [ -z "$fallback" ] || m4args+=( "-D _BRANCH_FALLBACK_=$fallback" )
 
-- 
GitLab