-
Notifications
You must be signed in to change notification settings - Fork 0
/
pastix_env.sh.in
36 lines (31 loc) · 1.07 KB
/
pastix_env.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# @file pastix_env.sh
#
# @copyright 2016-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved.
#
# @version 6.1.0
# @author Mathieu Faverge
# @date 2019-11-12
#
#!/bin/sh
LIB=pastix
export PASTIX_DIR=@CMAKE_INSTALL_PREFIX@
for i in PATH DYLD_LIBRARY_PATH LD_LIBRARY_PATH LIBRARY_PATH LD_RUN_PATH INCLUDE INCLUDE_PATH PKG_CONFIG_PATH PYTHONPATH
do
for j in /pastix
do
cmd1="echo \\\"\$$i\\\" | sed -E 's+^(\(.*:|\))[^:]*${j}[^:]*(\(|:.*\))$+\1\2+' | sed 's/::/:/' | sed 's/^://' | sed 's/:$//' "
temp=`eval $cmd1`;
eval "$i=$temp";
done
done
export PATH=$PATH:$PASTIX_DIR/bin
export LD_RUN_PATH=$LD_RUN_PATH:$PASTIX_DIR/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PASTIX_DIR/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PASTIX_DIR/lib
export LIBRARY_PATH=$LIBRARY_PATH:$PASTIX_DIR/lib
export PYTHONPATH=$PYTHONPATH:$PASTIX_DIR/lib/python
export INCLUDE=$INCLUDE:$PASTIX_DIR/include
export INCLUDE_PATH=$INCLUDE_PATH:$PASTIX_DIR/include
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PASTIX_DIR/lib/pkgconfig