aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-04 14:47:45 +0000
committermerakor <cem@ckyln.com>2021-11-04 14:47:45 +0000
commita16f90bbc44c411fa329d2b3130ba767ed748614 (patch)
treef33281719f75d5b32c7edc95eb04a0c57a5849eb
parentf11e2638300d6a1c8a4c4d8a44eca9b3200bbc96 (diff)
downloadcpt-a16f90bbc44c411fa329d2b3130ba767ed748614.tar.gz
cpt-lib: store version in the $cpt_version variable
FossilOrigin-Name: 16f497acb1791636c04b3d1291d2009970949f9bed283340acef63b514694c0b
-rw-r--r--src/cpt-lib.in5
1 files changed, 4 insertions, 1 deletions
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 && {