Add git id to version string - pee - Pee a password manager;Pee - because you h… | |
git clone git://vernunftzentrum.de/pee.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit f2c58eb28c7978cb9e7795b0f5d7e9a15a9888cd | |
parent 499d93e6d0b18bab4a07665685a85c430fff29ec | |
Author: Christian Kellermann <[email protected]> | |
Date: Tue, 19 Apr 2016 16:17:31 +0200 | |
Add git id to version string | |
Diffstat: | |
compile.sh | 6 +++++- | |
pee.scm | 2 +- | |
program-meta.scm | 1 + | |
3 files changed, 7 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/compile.sh b/compile.sh | |
@@ -1,6 +1,9 @@ | |
#!/bin/sh | |
set -e | |
+echo -n '(define-constant commit-id "'\ | |
+ $(git show -q | grep ^commit| awk '{print $2 }') '")' > hash | |
+ | |
chicken-install -r blob-utils >/dev/null || echo Fetching blob-utils has faile… | |
chicken-install -r check-errors >/dev/null || echo Fetching check-errors has f… | |
chicken-install -r foreigners >/dev/null || echo Fetching foreigners has faile… | |
@@ -27,5 +30,6 @@ csc -static *o ./tweetnacl/tweetnacl.impl.o -o pee | |
strip ./pee | |
-rm -r matchable blob-utils check-errors foreigners getopt-long string-utils st… | |
+rm -r matchable blob-utils check-errors foreigners getopt-long string-utils st… | |
rm *.o *.import.* | |
+ | |
diff --git a/pee.scm b/pee.scm | |
@@ -266,7 +266,7 @@ | |
(value #f)))) | |
(define (banner) | |
- (printf "~a Version ~a -- ~a~%" program-name-string program-version program-… | |
+ (printf "~a Version ~a (~a) -- ~a~%" program-name-string program-version com… | |
(define (do-add db-name db p e) | |
(when (alist-ref e db equal?) | |
diff --git a/program-meta.scm b/program-meta.scm | |
@@ -1,3 +1,4 @@ | |
(define-constant program-name-string "pee") | |
(define-constant program-version "0.2") | |
(define-constant program-description "A password manager for the command line.… | |
+(include "hash") |