From 9b5c94fed9fecfb9fd078a9a4616ca1972b0a405 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 25 Aug 2019 15:12:36 +0200 Subject: [PATCH] Add get-version script --- bin/get-version.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/get-version.sh diff --git a/bin/get-version.sh b/bin/get-version.sh new file mode 100755 index 000000000..5a12ddd7a --- /dev/null +++ b/bin/get-version.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e + +version=$(grep "__version__ = " spacy/about.py) +version=${version/__version__ = } +version=${version/\'/} +version=${version/\'/} +version=${version/\"/} +version=${version/\"/} + +echo $version