Get lib name automatically for install endpoints
[EVA-2020-02-2.git] / install.sh
index 13ce97a3879b4861c88870b37878f4a767eb2901..1205c0cc09ac5628a44e623b7b72841967c7603d 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/bash
 
-printf "{{LIBNAME:UC}} Python Library: Installer\n\n"
+LIBRARY_VERSION=`cat library/setup.py | grep version | awk -F"'" '{print $2}'`
+LIBRARY_NAME=`cat library/setup.py | grep name | awk -F"'" '{print $2}'`
+
+printf "$LIBRARY_NAME $LIBRARY_VERSION Python Library: Installer\n\n"
 
 if [ $(id -u) -ne 0 ]; then
        printf "Script must be run as root. Try 'sudo ./install.sh'\n"