containerized-rpmbuild: make tools only for build mode (#7122)
This commit is contained in:
parent
515cb74cbe
commit
bf7b67e4f2
|
@ -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..."
|
||||||
|
|
Loading…
Reference in New Issue