X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/09a2e88c51e5432e607f2a38466e55b4ba15e887..f3e02106cfc33ffe333af9e303a9e68f3ecfb2e4:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index f0b120f6bf..541e684bf3 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -69,6 +69,10 @@ handle_ruby_gem() { local gem_version="$(nohash_version_from_git)" local gem_src_dir="$(pwd)" + if [[ -n "$ONLY_BUILD" ]] && [[ "$gem_name" != "$ONLY_BUILD" ]] ; then + return 0 + fi + if ! [[ -e "${gem_name}-${gem_version}.gem" ]]; then find -maxdepth 1 -name "${gem_name}-*.gem" -delete @@ -84,6 +88,10 @@ package_go_binary() { local description="$1"; shift local license_file="${1:-agpl-3.0.txt}"; shift + if [[ -n "$ONLY_BUILD" ]] && [[ "$prog" != "$ONLY_BUILD" ]] ; then + return 0 + fi + debug_echo "package_go_binary $src_path as $prog" local basename="${src_path##*/}" @@ -143,6 +151,11 @@ _build_rails_package_scripts() { handle_rails_package() { local pkgname="$1"; shift + + if [[ -n "$ONLY_BUILD" ]] && [[ "$pkgname" != "$ONLY_BUILD" ]] ; then + return 0 + fi + local srcdir="$1"; shift local license_path="$1"; shift local scripts_dir="$(mktemp --tmpdir -d "$pkgname-XXXXXXXX.scripts")" && \ @@ -208,6 +221,10 @@ fpm_build () { VERSION=$1 shift + if [[ -n "$ONLY_BUILD" ]] && [[ "$PACKAGE_NAME" != "$ONLY_BUILD" ]] && [[ "$PACKAGE" != "$ONLY_BUILD" ]] ; then + return 0 + fi + local default_iteration_value="$(default_iteration "$PACKAGE" "$VERSION")" case "$PACKAGE_TYPE" in