Skip to content

Commit adca3fe

Browse files
committed
fixing verison of the script used
1 parent e23560b commit adca3fe

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

script/build_plug_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
SCRIPTPATH=`dirname $(dirname $(realpath $0))`
4-
docker run -v "$SCRIPTPATH:/Trelis-plugin" -v "$2:/Trelis-sdk" -it $1 bash -c "/Trelis-plugin/script/build_plugin.sh $3"
4+
docker run -v "$SCRIPTPATH:/Trelis-plugin" -v "$2:/Trelis-sdk" -it $1 bash -c "/Trelis-plugin/script/build_plugin.sh $3; bash"

script/build_plugin.sh

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ dpkg -i Trelis-$1-Lin64.deb
55

66
cd /opt
77
tar -xzvf /Trelis-sdk/Trelis-SDK-$1-Lin64.tar.gz
8+
cd /opt/Trelis-16.5
9+
tar -xzvf /Trelis-sdk/Trelis-SDK-$1-Lin64.tar.gz
810

911
apt-get update -y
1012
apt-get install -y autogen autoconf libtool libeigen3-dev libhdf5-dev patchelf gfortran git cmake
@@ -49,9 +51,6 @@ cd ${PLUGIN_ABS_PATH}
4951
mkdir -pv DAGMC/bld
5052
cd DAGMC
5153
git clone https://github.com/bam241/DAGMC -b preproc_plugin
52-
cd DAGMC
53-
git status
54-
cd ..
5554
cd bld
5655
cmake ../DAGMC -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 \
5756
-DMOAB_DIR=${PLUGIN_ABS_PATH}/moab \
@@ -73,13 +72,20 @@ git submodule update --init
7372
cd ${PLUGIN_ABS_PATH}
7473
mkdir -pv bld
7574
cd bld
76-
cmake ../Trelis-plugin -DCUBIT_ROOT=/opt/Trelis-17.1 \
75+
ls /opt/Trelis-${1::4}
76+
ls /opt/Trelis-*
77+
ls /opt
78+
cmake ../Trelis-plugin -DCUBIT_ROOT=/opt/Trelis-${1::4} \
7779
-DDAGMC_DIR=${PLUGIN_ABS_PATH}/DAGMC \
7880
-DCMAKE_BUILD_TYPE=Release \
7981
-DCMAKE_INSTALL_PREFIX=${PLUGIN_ABS_PATH}
8082
make -j`grep -c processor /proc/cpuinfo`
8183
make install
82-
84+
echo " cmake ../Trelis-plugin -DCubit_DIR=/opt/Trelis-${1::4} \
85+
-DCUBIT_ROOT=/opt/Trelis-${1::4} \
86+
-DDAGMC_DIR=${PLUGIN_ABS_PATH}/DAGMC \
87+
-DCMAKE_BUILD_TYPE=Release \
88+
-DCMAKE_INSTALL_PREFIX=${PLUGIN_ABS_PATH} "
8389

8490
cd ${PLUGIN_ABS_PATH}
8591
mkdir -p pack/bin/plugins/svalinn
@@ -96,12 +102,11 @@ cp -pPv /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.100* .
96102
chmod 644 *
97103

98104
# Set the RPATH to be the current directory for the DAGMC libraries
99-
patchelf --set-rpath /opt/Trelis-${1%.??}/bin/plugins/svalinn libMOAB.so
100-
patchelf --set-rpath /opt/Trelis-${1%.??}/bin/plugins/svalinn libdagmc.so
101-
patchelf --set-rpath /opt/Trelis-${1%.??}/bin/plugins/svalinn libmakeWatertight.so
102-
patchelf --set-rpath /opt/Trelis-${1%.??}/bin/plugins/svalinn libpyne_dagmc.so
103-
#patchelf --set-rpath /opt/Trelis-$1/bin/plugins libsvalinn_plugin.so
104-
patchelf --set-rpath /opt/Trelis-${1%.??}/bin/plugins/svalinn libuwuw.so
105+
patchelf --set-rpath /opt/Trelis-${1::4}/bin/plugins/svalinn libMOAB.so
106+
patchelf --set-rpath /opt/Trelis-${1::4}/bin/plugins/svalinn libdagmc.so
107+
patchelf --set-rpath /opt/Trelis-${1::4}/bin/plugins/svalinn libmakeWatertight.so
108+
patchelf --set-rpath /opt/Trelis-${1::4}/bin/plugins/svalinn libpyne_dagmc.so
109+
patchelf --set-rpath /opt/Trelis-${1::4}/bin/plugins/svalinn libuwuw.so
105110

106111
# Create the Svalinn plugin tarball
107112
cd ..

0 commit comments

Comments
 (0)