summaryrefslogtreecommitdiffstats
path: root/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 /Makefile
parent5298a5409162793860fae38c19cf752e463eee7b (diff)
Make version parsing more robust.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 472b02ed..fb613646 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ TAR ?= tar
XZ ?= xz
GPG ?= gpg
-VERSION ?= $(shell grep '^version = ' Cargo.toml | cut -d'"' -f2)
+VERSION ?= $(shell grep '^version[[:space:]]*=[[:space:]]*' Cargo.toml | cut -d'"' -f2)
# Make sure subprocesses pick these up.
export PREFIX