diff options
-rw-r--r-- | src/cpt-lib.in | 5 |
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 && { |