#!/bin/bash

# ICON
#
# ------------------------------------------
# Copyright (C) 2004-2026, DWD, MPI-M, DKRZ, KIT, ETH, MeteoSwiss
# Contact information: icon-model.org
# See AUTHORS.TXT for a list of authors
# See LICENSES/ for license information
# SPDX-License-Identifier: BSD-3-Clause
# ------------------------------------------

calldir=$(dirname $0)

if [[ "_$2" == "_--clean" ]]; then
  rm -rf $calldir/../../build $calldir/../../ocean_build
fi

cd $calldir/../buildbot_scripts
./build ocean_$1 --list ocean
cd -
