From 944b1246f088f9a83cadf3c7a777e0537f44f734 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 24 Aug 2020 14:41:49 +0200 Subject: [PATCH] Add script to get package name --- bin/get-package.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/get-package.sh diff --git a/bin/get-package.sh b/bin/get-package.sh new file mode 100755 index 000000000..d60b930b4 --- /dev/null +++ b/bin/get-package.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e + +version=$(grep "__title__ = " spacy/about.py) +version=${version/__title__ = } +version=${version/\'/} +version=${version/\'/} +version=${version/\"/} +version=${version/\"/} + +echo $version