Commit fab725d5 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'script_lxplus' into 'master'

script to setup environment for lxplus

See merge request !74
parents 54cd5841 2337c113
Pipeline #631265 passed with stages
in 10 minutes and 8 seconds
# Scripts
## addModule.sh
Short script to prepare the source code and CMake files for a new allpix<sup>2</sup> module.
The tool will ask for all necessary information, such as the module name ("Module" will be appended automatically) and the type (global, detector,dut).
Both unique and detector-specific modules are supported.
A README.md file is automatically created, containing the author and contact information of the creator. The information is retrieved using the `git config user.name` and `git config user.email` commands if available, or `whoami` and `hostname` as fallback.
Please make sure, the information is correct.
Usage:
```
./etc/addModule.sh
```
Example Output:
```
$ ./etc/addModule.sh
Preparing code basis for a new module:
Name of the module? MyNewModule
Type of the module?
1) global
2) detector
3) dut
#? 1
Creating directory and files...
Name: MyNewModule
Author: John Doe (john.doe@cern.ch)
Path: /path/to/corryvreckan/src/modules/MyNewModule
Re-run CMake in order to build your new module.
```
## setup_lxplus.sh
Script to facilitate the compilation of Corryvreckan on the CERN LXPLUS Linux cluster. Sourcing the script via
```
source etc/setup_lxplus.sh
```
will setup all required build dependencies.
if [ ! -d "/cvmfs/clicdp.cern.ch" ]; then
echo "CVMFS not available"
return
fi
# Get our directory and load the CI init
ABSOLUTE_PATH=`dirname $(readlink -f ${BASH_SOURCE[0]})`
# Load default configuration
source $ABSOLUTE_PATH/../.gitlab-ci.d/init_x86_64.sh
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