Take the program version from the git tag - pee - Pee a password manager;Pee - because you have to...
(HTM) git clone git://vernunftzentrum.de/pee.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 8492d640979639d4ba7be4562b37bf840b110de2
(DIR) parent cd211e64503516de2933cd4f4209fcd3a207589a
(HTM) Author: Christian Kellermann <ckeen@pestilenz.org>
Date: Tue, 19 Apr 2016 16:32:27 +0200
Take the program version from the git tag
Diffstat:
compile.sh | 4 +++-
program-meta.scm | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/compile.sh b/compile.sh
@@ -4,6 +4,8 @@ set -e
echo -n '(define-constant commit-id "'\
$(git show -q | grep ^commit| awk '{print $2 }') '")' > hash
+echo -n '(define-constant program-version "' $(git tag | sort -nr | head -1) '")' > tag
+
chicken-install -r blob-utils >/dev/null || echo Fetching blob-utils has failed.
chicken-install -r check-errors >/dev/null || echo Fetching check-errors has failed.
chicken-install -r foreigners >/dev/null || echo Fetching foreigners has failed.
@@ -30,6 +32,6 @@ csc -static *o ./tweetnacl/tweetnacl.impl.o -o pee
strip ./pee
-rm -r matchable blob-utils check-errors foreigners getopt-long string-utils stty tweetnacl hash
+rm -r matchable blob-utils check-errors foreigners getopt-long string-utils stty tweetnacl hash tag
rm *.o *.import.*
(DIR) diff --git a/program-meta.scm b/program-meta.scm
@@ -1,4 +1,4 @@
(define-constant program-name-string "pee")
-(define-constant program-version "0.3")
(define-constant program-description "A password manager for the command line.")
(include "hash")
+(include "tag")