-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathectrans-bundle
More file actions
executable file
·32 lines (24 loc) · 1.02 KB
/
Copy pathectrans-bundle
File metadata and controls
executable file
·32 lines (24 loc) · 1.02 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
#!/usr/bin/env bash
# (C) Copyright 2026- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
# BOOTSTRAP ecbundle-build or ecbundle-create,
# and pass arguments to it.
ecbundle_VERSION=develop
BUNDLE_DIR="$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd -P )"
# Download ecbundle scripts if not already available
command_exists () { type "$1" &> /dev/null ; }
if ! command_exists ecbundle ; then
if [[ ! -d ${BUNDLE_DIR}/ecbundle ]]; then
git clone https://github.com/ecmwf/ecbundle ${BUNDLE_DIR}/ecbundle
( cd ${BUNDLE_DIR}/ecbundle && git checkout ${ecbundle_VERSION} )
fi
export PATH=${BUNDLE_DIR}/ecbundle/bin:${PATH}
fi
{ module unload python3; module load python3; } 2>/dev/null
set -e
ecbundle "$@"