diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-04-04 12:39:34 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-04-04 13:01:10 +0200 |
commit | b73156ea0af9c65914e0bcebd535269c44f43dd1 (patch) | |
tree | b7b584a882161ddd3017851b99b2f4ee255363e4 /ffi/Makefile | |
parent | 5298a5409162793860fae38c19cf752e463eee7b (diff) |
Make version parsing more robust.
Diffstat (limited to 'ffi/Makefile')
-rw-r--r-- | ffi/Makefile | 2 |
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. |