2019-11-13 01:27:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd $(dirname "$0")
|
|
|
|
|
2019-11-12 23:39:24 +00:00
|
|
|
set -a
|
2019-11-13 01:27:46 +00:00
|
|
|
source $1.env
|
2019-11-12 23:39:24 +00:00
|
|
|
set +a
|
|
|
|
|
2019-11-13 01:27:46 +00:00
|
|
|
NIM_FLAGS=""
|
2019-11-12 23:39:24 +00:00
|
|
|
|
2019-11-13 01:27:46 +00:00
|
|
|
add_var () {
|
|
|
|
if [[ ! -z "${!1}" ]]; then
|
|
|
|
NIM_FLAGS+="-d:$1=${!1} "
|
2019-11-12 23:39:24 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-11-13 01:27:46 +00:00
|
|
|
add_var CONST_PRESET
|
|
|
|
add_var NETWORK_TYPE
|
|
|
|
add_var SLOTS_PER_EPOCH
|
|
|
|
add_var MAX_COMMITTEES_PER_SLOT
|
2019-11-12 23:39:24 +00:00
|
|
|
|
2019-11-13 01:27:46 +00:00
|
|
|
echo $NIM_FLAGS
|
2019-11-12 23:39:24 +00:00
|
|
|
|