-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·36 lines (26 loc) · 1.18 KB
/
build.sh
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
#!/bin/bash
# First, you need to source the bash library.
source lib/build_utils.sh
# In your own script, you will have to load the bash-utils module and then
# source the library in the following way.
# module load bash-utils
# source "${BASH_UTILS_DIR}/build_utils.sh"
# Set the program name and versions, used to create the installation paths.
PROGRAM_NAME=bash-utils
PROGRAM_VERSION=devel
# the following function sets up the installation path according to the
# cluster the script is running on and the first argument given. The argument
# can be:
# - "group": install the software in the group wide directory
# - "user": install the software only for the current user
# - "test": install the software in the current working directory
process_build_script_input group
# load all the modules required for the program to compile and run.
# the following command also adds those module names in the modulefile
# that this script will generate.
# module_load module1/ver module2/ver ..
# build your software here
cp -r lib $INSTALL_DIR/
# add any additional LMOD command you want to be run here..
ADDITIONAL_MODULEFILE_COMMANDS="setenv('BASH_UTILS_DIR', root_dir .. '/lib');"
create_modulefile