From a16f90bbc44c411fa329d2b3130ba767ed748614 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 4 Nov 2021 14:47:45 +0000 Subject: cpt-lib: store version in the $cpt_version variable FossilOrigin-Name: 16f497acb1791636c04b3d1291d2009970949f9bed283340acef63b514694c0b --- src/cpt-lib.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 68a611b..e975885 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -9,7 +9,7 @@ # Currently maintained by Cem Keylan. version() { - out "Carbs Packaging Tools, version @VERSION@" \ + out "Carbs Packaging Tools, version $cpt_version" \ @LICENSE@ exit 0 @@ -2225,6 +2225,9 @@ create_cache() { { set -ef + # Package manager version. + cpt_version=@VERSION@ + # If a parser definition exists, let's run it ourselves. This makes sure we # get the variables as soon as possible. command -v parser_definition >/dev/null && { -- cgit v1.2.3