2024-12-04 15:58:59 +01:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
# Get the absolute path of the current directory.
|
|
|
|
currdir=${PWD}
|
|
|
|
|
|
|
|
# list of the scripts to be used by the module
|
2024-12-13 17:35:24 +01:00
|
|
|
scripts_list="qp_copy_extra_basis qp_add_extra_fit_system qp_copy_extra_basis_to_usual_basis qp_fit_1s_basis"
|
2024-12-04 15:58:59 +01:00
|
|
|
|
|
|
|
# Make a symbolic link for all scripts to be used in the ${QP_ROOT}/scripts/
|
|
|
|
# directory.
|
|
|
|
for i in $scripts_list
|
|
|
|
do
|
|
|
|
ln --symbolic ${currdir}/$i ${QP_ROOT}/scripts/
|
|
|
|
done
|
|
|
|
|