containerized-rpmbuild: make tools only for build mode (#7122)

This commit is contained in:
Neha Agarwal 2024-01-04 08:55:18 -08:00 committed by GitHub
parent 515cb74cbe
commit bf7b67e4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -164,14 +164,16 @@ if [[ "${mode}" == "build" ]]; then
fi fi
# ============ Setup tools ============ # ============ Setup tools ============
if [[ "${mode}" == "build" ]]; then
# Copy relavant build tool executables from $TOOL_BINS_DIR # Copy relavant build tool executables from $TOOL_BINS_DIR
echo "Setting up tools..." 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 "$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 if [[ ! -f "$PKGBUILD_DIR/graph.dot" ]]; then build_graph; fi
cp $TOOL_BINS_DIR/depsearch ${tmp_dir}/ cp $TOOL_BINS_DIR/depsearch ${tmp_dir}/
cp $TOOL_BINS_DIR/grapher ${tmp_dir}/ cp $TOOL_BINS_DIR/grapher ${tmp_dir}/
cp $TOOL_BINS_DIR/specreader ${tmp_dir}/ cp $TOOL_BINS_DIR/specreader ${tmp_dir}/
cp $PKGBUILD_DIR/graph.dot ${tmp_dir}/ cp $PKGBUILD_DIR/graph.dot ${tmp_dir}/
fi
# ========= Setup mounts ========= # ========= Setup mounts =========
echo "Setting up mounts..." echo "Setting up mounts..."