-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
37 lines (32 loc) · 1.74 KB
/
install.sh
File metadata and controls
37 lines (32 loc) · 1.74 KB
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
37
#! /bin/bash
#
echo " ███████╗ █████╗ ███████╗██╗███████╗███████╗███╗ ███╗"
echo " ██╔════╝██╔══██╗██╔════╝██║██╔════╝██╔════╝████╗ ████║"
echo " █████╗ ███████║███████╗██║█████╗ █████╗ ██╔████╔██║"
echo " ██╔══╝ ██╔══██║╚════██║██║██╔══╝ ██╔══╝ ██║╚██╔╝██║"
echo " ███████╗██║ ██║███████║██║██║ ███████╗██║ ╚═╝ ██║"
echo " ╚══════╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝"
echo " EASIFEM \n"
echo " Expandable And Scalable Infrastructure for Finite Element Methods \n"
echo " (c) Vikas Sharma, vikas.easifem.com \n"
echo " https://www.easifem.com \n"
echo " https://github.com/easifem-fortran \n"
echo " "
if [ -z "${EASIFEM_APP}" ]; then
echo "meshio will be installed at ./bin/meshio"
EASIFEM_APP="./"
else
echo "meshio will be installed at ${EASIFEM_APP}/bin/meshio"
fi
build_dir=/tmp/easifem/meshio/build
rm -rf ${build_dir}
cmake -G "Ninja" -B ${build_dir}
cmake --build ${build_dir}
mv ${build_dir}/meshio ${EASIFEM_APP}/bin/meshio
echo "meshio is build at ${build_dir}"
echo "meshio is installed at ${EASIFEM_APP}/bin/meshio"
echo ""
echo "try following commands:"
echo "which meshio"
echo "meshio --help"
echo "meshio --version"