Add script to get package name

This commit is contained in:
Matthew Honnibal 2020-08-24 14:41:49 +02:00
parent 64df37643f
commit 944b1246f0

12
bin/get-package.sh Executable file
View File

@ -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