📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit aa0b2b05 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add update.sh and update readme accordingly

parent 20f49de3
Pipeline #120301 passed with stages
in 1 minute and 8 seconds
......@@ -4,24 +4,74 @@
[![pipeline status](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph/badges/master/pipeline.svg)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph/-/commits/master)
[![coverage report](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph/badges/master/coverage.svg)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph/-/commits/master)
Code
----
# Code
https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph
Documentation
----
# Documentation
https://cta-lapp.pages.in2p3.fr//PHOENIX_LIBS/PhoenixGraph/
Requirements
------------
# Requirements
- c++ compiler >=5.3.1
- c++ compiler (tested with gcc 5,6,7,8,9,10 and clang 9,10)
- cmake > 3
- make
Installation for Users
----------------------
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
# Installation for Users
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
$ cd PhoenixGraph
$ ./install.sh
```
Then **PhoenixGraph** is installed in your $HOME/usr.
If you prefer a customized install path you can do :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
$ cd PhoenixGraph
$ ./install.sh /your/install/path
```
If you prefer a customized install path with custom compilation you can do :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
$ cd PhoenixGraph
$ mkdir -p build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/your/install/Path
$ make -j `nproc`
$ make install -j `nproc`
```
The **nproc** gives the number of cores of the computer. If you want a build on one core you can just type :
```sh
$ make
$ make install
```
# Update PhoenixGraph
If you want to update the software :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
$ cd PhoenixGraph
$ ./update.sh
```
If you want to update the software with a custom install path :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGraph.git
$ cd PhoenixGraph
$ ./update.sh /your/install/path
```
#/bin/bash
INSTALL_PREFIX="$1"
if [ -z "$1" ]
then
if [ -z $CONDA_ENV_PATH ]
then
if [ -z $CONDA_PREFIX ]
then
INSTALL_PREFIX="$HOME/usr"
else
INSTALL_PREFIX=$CONDA_PREFIX
fi
else
INSTALL_PREFIX=$CONDA_ENV_PATH
fi
fi
git pull
if [ -d build ]
then
rm -fr build
fi
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" -DPHOENIX_FORCE_PULL_MODULE=yes
make -j `nproc`
make install -j `nproc`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment