10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 03:51:01 +02:00
This commit is contained in:
Anthony Scemama 2019-01-08 11:10:41 +01:00
parent c3326e5a5b
commit 62f0d2fc52
2 changed files with 20 additions and 4 deletions

View File

@ -4,6 +4,22 @@ qp_export_as_tgz
.. program:: qp_export_as_tgz
.. TODO
In some HPC facilities, the access to the internet is limited for security reasons.
In such an environment, the installation of |QP| is sometimes very painful because
the OCaml compiler and the libraries can't be installed by a non-root user.
This command creates a self-contained binary distribution in the form of a `tar.gz` file
that can be copied on another machine.
Usage
-----
.. code:: bash
qp_export_as_tgz
.. note::
There can be conflicts due to the version of Glibc. The machine on which |QP| is
compiled should be the oldest one.
.. include:: /work.rst

View File

@ -176,10 +176,10 @@ sed "s!^export QP_ROOT=.*\$!export QP_ROOT=\$( cd \$(dirname "\${BASH_SOURCE}")
echo "Creating the archive"
# --------------------
tar --gzip --compress --file "${QPACKAGE_STATIC}".tar.gz quantum_package_static && rm --recursive --force -- "${QPACKAGE_STATIC}"
tar --create --gzip --file "${QPACKAGE_STATIC}".tar.gz quantum_package_static && rm --recursive --force -- "${QPACKAGE_STATIC}"
if [[ $? -ne 0 ]] ;
then
echo 'tar --gzip --compress --file "${QPACKAGE_STATIC}".tar.gz "${QPACKAGE_STATIC}" && rm --recursive --force -- "${QPACKAGE_STATIC}"'
echo 'tar --create --gzip --file "${QPACKAGE_STATIC}".tar.gz "${QPACKAGE_STATIC}" && rm --recursive --force -- "${QPACKAGE_STATIC}"'
exit 1
fi