summaryrefslogtreecommitdiffstats
path: root/ffi/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-04-04 12:39:34 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-04-04 13:01:10 +0200
commitb73156ea0af9c65914e0bcebd535269c44f43dd1 (patch)
treeb7b584a882161ddd3017851b99b2f4ee255363e4 /ffi/Makefile
parent5298a5409162793860fae38c19cf752e463eee7b (diff)
Make version parsing more robust.
Diffstat (limited to 'ffi/Makefile')
-rw-r--r--ffi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/Makefile b/ffi/Makefile
index ed3b0d3f..24c416cc 100644
--- a/ffi/Makefile
+++ b/ffi/Makefile
@@ -4,7 +4,7 @@
PREFIX ?= /usr/local
DESTDIR ?=
-VERSION ?= $(shell grep '^version = ' Cargo.toml | cut -d'"' -f2)
+VERSION ?= $(shell grep '^version[[:space:]]*=[[:space:]]*' Cargo.toml | cut -d'"' -f2)
VERSION_MAJOR = $(shell echo $(VERSION) | cut -d'.' -f1)
# Tools.