1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-11-07 06:33:40 +01:00

Added install/uninstall scripts

This commit is contained in:
Anthony Scemama 2022-06-17 16:17:47 +02:00
parent 9e9caf4037
commit e1da425522
2 changed files with 33 additions and 0 deletions

13
devel/trexio/install Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Check if the QP_ROOT environment variable is set.
if [[ -z ${QP_ROOT} ]]
then
print "The QP_ROOT environment variable is not set."
print "Please reload the quantum_package.rc file."
exit -1
fi
pkg-config --libs trexio > LIB
ln --symbolic ${PWD}/qp_import_trexio.py $QP_ROOT/scripts

20
devel/trexio/uninstall Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
# Check if the QP_ROOT environment variable is set.
if [[ -z ${QP_ROOT} ]]
then
print "The QP_ROOT environment variable is not set."
print "Please reload the quantum_package.rc file."
exit -1
fi
scripts_list="qp_import_trexio.py "
# Destroy ONLY the symbolic link for the scripts to be used in the
# ${QP_ROOT}/scripts/ directory.
for i in $scripts_list
do
find ${QP_ROOT}/scripts/$i -type l -delete
done