]> git.codecow.com Git - Monocypher.git/commitdiff
Added VERSION file
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 27 Jun 2018 08:51:14 +0000 (10:51 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 27 Jun 2018 08:53:38 +0000 (10:53 +0200)
VERSION.md [new file with mode: 0644]
makefile

diff --git a/VERSION.md b/VERSION.md
new file mode 100644 (file)
index 0000000..2165f8f
--- /dev/null
@@ -0,0 +1 @@
+2.0.4
index 8f33f12557f11e5b1ee93421afeb9b56ee4f5c5d..508a392a4abc7f4ff9238c6e90a946bcec2b1429 100644 (file)
--- a/makefile
+++ b/makefile
@@ -6,7 +6,7 @@ PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig
 MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3
 
 # override with x.y.z when making a proper tarball
-TARBALL_VERSION=master
+TARBALL_VERSION=$$(cat VERSION.md)
 # avoids changing the current directory while we archive it
 TARBALL_DIR=..
 
@@ -30,7 +30,7 @@ install: library src/monocypher.h install-doc
        @echo 'includedir=$${prefix}/include'   >> $(PKGCONFIG)/monocypher.pc
        @echo ''                                >> $(PKGCONFIG)/monocypher.pc
        @echo 'Name: monocypher'                >> $(PKGCONFIG)/monocypher.pc
-       @echo 'Version: 1.1.0'                  >> $(PKGCONFIG)/monocypher.pc
+       @echo 'Version:' $$(cat VERSION.md)     >> $(PKGCONFIG)/monocypher.pc
        @echo 'Description: Easy to use, easy to deploy crypto library' \
                                                 >> $(PKGCONFIG)/monocypher.pc
        @echo ''                                >> $(PKGCONFIG)/monocypher.pc