#!/bin/bash # # Copyright (c) 2021 The Flatcar Maintainers. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. set -eu cd $(dirname "$0") source sdk_lib/sdk_container_common.sh seed_version="" target_version="" declare -a cleanup # -- usage() { echo " Usage:" echo " $0 [-x ]" echo echo " This script will bootstrap a new SDK tarball using an SDK container." echo " '$sdk_container_common_versionfile' will be updated to the target version." echo echo " - SDK version number (e.g. '3005.0.0') to use for bootstrapping." echo " The SDK container will be pulled and the tarball" echo " downloaded if necessary." echo " - SDK version number (e.g. '3027.0.0') of the new SDK." echo " -x - For each resource generated during build (container etc.)" echo " add a cleanup line to