From bf7b67e4f23f60149da50f02bf0ed6318b3794d3 Mon Sep 17 00:00:00 2001 From: Neha Agarwal <58672330+neha170@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:55:18 -0800 Subject: [PATCH] containerized-rpmbuild: make tools only for build mode (#7122) --- .../create_container_build.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/toolkit/scripts/containerized-build/create_container_build.sh b/toolkit/scripts/containerized-build/create_container_build.sh index 417546f63f..66fd5c9019 100755 --- a/toolkit/scripts/containerized-build/create_container_build.sh +++ b/toolkit/scripts/containerized-build/create_container_build.sh @@ -164,14 +164,16 @@ if [[ "${mode}" == "build" ]]; then fi # ============ Setup tools ============ +if [[ "${mode}" == "build" ]]; then # Copy relavant build tool executables from $TOOL_BINS_DIR -echo "Setting up tools..." -if [[ ( ! -f "$TOOL_BINS_DIR/depsearch" ) || ( ! -f "$TOOL_BINS_DIR/grapher" ) || ( ! -f "$TOOL_BINS_DIR/specreader" ) ]]; then build_tools; fi -if [[ ! -f "$PKGBUILD_DIR/graph.dot" ]]; then build_graph; fi -cp $TOOL_BINS_DIR/depsearch ${tmp_dir}/ -cp $TOOL_BINS_DIR/grapher ${tmp_dir}/ -cp $TOOL_BINS_DIR/specreader ${tmp_dir}/ -cp $PKGBUILD_DIR/graph.dot ${tmp_dir}/ + echo "Setting up tools..." + if [[ ( ! -f "$TOOL_BINS_DIR/depsearch" ) || ( ! -f "$TOOL_BINS_DIR/grapher" ) || ( ! -f "$TOOL_BINS_DIR/specreader" ) ]]; then build_tools; fi + if [[ ! -f "$PKGBUILD_DIR/graph.dot" ]]; then build_graph; fi + cp $TOOL_BINS_DIR/depsearch ${tmp_dir}/ + cp $TOOL_BINS_DIR/grapher ${tmp_dir}/ + cp $TOOL_BINS_DIR/specreader ${tmp_dir}/ + cp $PKGBUILD_DIR/graph.dot ${tmp_dir}/ +fi # ========= Setup mounts ========= echo "Setting up mounts..."