4 SCRIPTDIR="$(readlink -f $(dirname ${BASH_SOURCE[0]}))"
5 LIBDIR="$(dirname $(dirname ${SCRIPTDIR}))/env/lib"
7 source $LIBDIR/common.sh
9 function build_source {
10 mkdir -p ${SCRIPTDIR}/base
11 curl -sL https://github.com/kubevirt/containerized-data-importer/releases/download/${CDI_VERSION}/cdi-cr.yaml -o ${SCRIPTDIR}/base/cdi-cr.yaml
12 rm -f ${SCRIPTDIR}/base/kustomization.yaml
13 pushd ${SCRIPTDIR}/base && kustomize create --autodetect && popd
17 "build-source") build_source ;;
19 Usage: $(basename $0) COMMAND
22 build-source - Rebuild the in-tree YAML files