Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixFileBinaryAnalyzer
Commits
831508f6
Commit
831508f6
authored
May 22, 2021
by
Pierre Aubert
Browse files
Add update.sh and update readme accordingly
parent
fb3e9615
Pipeline
#120309
passed with stages
in 6 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
2 deletions
+87
-2
README.md
README.md
+53
-2
update.sh
update.sh
+34
-0
No files found.
README.md
View file @
831508f6
...
...
@@ -15,16 +15,67 @@ https://cta-lapp.pages.in2p3.fr//PHOENIX_LIBS/PhoenixFileBinaryAnalyzer/
# Requirements
-
c++ compiler
>=5.3.1
-
c++ compiler
(tested with gcc 5,6,7,8,9,10 and clang 9,10)
-
cmake > 3
-
make
-
HDF5 C++
# Installation for Users
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixFileBinaryAnalyzer.git
```
sh
$
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixFileBinaryAnalyzer.git
$
cd
PhoenixFileBinaryAnalyzer
$
./install.sh
```
Then
**PhoenixFileBinaryAnalyzer**
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/PhoenixFileBinaryAnalyzer.git
$
cd
PhoenixFileBinaryAnalyzer
$
./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/PhoenixFileBinaryAnalyzer.git
$
cd
PhoenixFileBinaryAnalyzer
$
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 PhoenixFileBinaryAnalyzer
If you want to update the software :
```
sh
$
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixFileBinaryAnalyzer.git
$
cd
PhoenixFileBinaryAnalyzer
$
./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/PhoenixFileBinaryAnalyzer.git
$
cd
PhoenixFileBinaryAnalyzer
$
./update.sh /your/install/path
```
# Basic use
...
...
update.sh
0 → 100755
View file @
831508f6
#/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
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment