Skip to content
Snippets Groups Projects
Commit 3ad90920 authored by Pieter Donker's avatar Pieter Donker
Browse files

copy only files if exist

parent 77c2e6a7
Branches
Tags
No related merge requests found
...@@ -102,7 +102,12 @@ grep -v '^#' < "${filename}" | { ...@@ -102,7 +102,12 @@ grep -v '^#' < "${filename}" | {
if [ ! -d "${out}" ]; then if [ ! -d "${out}" ]; then
hdl_exec "$0" mkdir "${out}" hdl_exec "$0" mkdir "${out}"
fi fi
hdl_exec "$0" cp "${RADIOHDL_BUILD_DIR}"/"${BUILDSET}"/quartus/"${REVISION}"/"${REVISION}"-* "${out}" # get rbf/sof filename git hash will be expanded
rbf_file=("${RADIOHDL_BUILD_DIR}"/"${BUILDSET}"/quartus/"${REVISION}"/"${REVISION}"-*.rbf)
sof_file=("${RADIOHDL_BUILD_DIR}"/"${BUILDSET}"/quartus/"${REVISION}"/"${REVISION}"-*.sof)
# copy files if exist
[[ -f "${rbf_file}" ]] && hdl_exec "$0" cp "${rbf_file}" "${out}"
[[ -f "${sof_file}" ]] && hdl_exec "$0" cp "${sof_file}" "${out}"
fi fi
STOP_TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S") STOP_TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
echo "== STOP BUILD == at ${STOP_TIMESTAMP}" echo "== STOP BUILD == at ${STOP_TIMESTAMP}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment