Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
build.sh: Create a tarball with the build result
Browse files Browse the repository at this point in the history
The archive name corresponds to the current version of the project.

Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 17, 2021
1 parent 6c8bcdd commit 981b956
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function build_application
${ROOT_DIR}/waf -vvv
cp ${ROOT_DIR}/build/${RTEMS_ARCH}-rtems5-${RTEMS_BSP}/${OUT_EXE_NAME} \
${ROOT_DIR}/${OUT_EXE_NAME}
tar -C ${ROOT_DIR} -zcvf ${ROOT_DIR}/$(get_version_lable_proj).tar.gz ${OUT_EXE_NAME}
}

function print_help
Expand Down Expand Up @@ -156,7 +157,9 @@ if [[ ${FLAG_BUILD_ALL} -eq 1 ]] ; then
fi;

if [[ ${FLAG_REBUILD_APP} -eq 1 ]] ; then
rm -rf ${ROOT_DIR}/${OUT_EXE_NAME} ${ROOT_DIR}/build/
rm -rf ${ROOT_DIR}/${OUT_EXE_NAME} \
${ROOT_DIR}/build/ \
${ROOT_DIR}/$(get_version_lable_proj).tar.gz
fi;

build_application
Expand Down

0 comments on commit 981b956

Please sign in to comment.