diff --git a/devel/trexio/install b/devel/trexio/install new file mode 100755 index 0000000..a5171e0 --- /dev/null +++ b/devel/trexio/install @@ -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 diff --git a/devel/trexio/uninstall b/devel/trexio/uninstall new file mode 100644 index 0000000..51d6759 --- /dev/null +++ b/devel/trexio/uninstall @@ -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 + +