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

Commit

Permalink
ci: Create an archive name using the ci script
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 29, 2021
1 parent 1fe41de commit 607190a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions ci/ci-create-rtems-export-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ ROOT_DIR="${CI_DIR}/.."
RTEMS_DIR="${ROOT_DIR}/rtems_rtos"
EXPORT_DIR="${ROOT_DIR}/rtems_export"

function get_version_lable_rtems_os
{
base=$(git -C ${RTEMS_DIR}/rtems describe --tags --dirty)
branch=$(git -C ${RTEMS_DIR}/rtems branch | grep \* | cut -d ' ' -f2-)
echo ${RTEMS_ARCH}"-"${RTEMS_BSP}"-"$branch"-"$base
}

mkdir -p ${EXPORT_DIR}
rtems_os_version_lable=$(bash ${CI_DIR}/ci-generate-version.sh rtems --arch ${RTEMS_ARCH} --bsp ${RTEMS_BSP})
echo "Export cross-tools and RTEMS object files to "
echo "${EXPORT_DIR}/rtems-export-$(get_version_lable_rtems_os).tar.gz"
ls ${RTEMS_DIR}/build-$(get_version_lable_rtems_os)
echo "${EXPORT_DIR}/rtems-export-${rtems_os_version_lable}.tar.gz"
ls ${RTEMS_DIR}/build-${rtems_os_version_lable}
tar -C ${RTEMS_DIR} -zcvf \
${ROOT_DIR}/rtems_export/rtems-export-$(get_version_lable_rtems_os).tar.gz \
./build-$(get_version_lable_rtems_os) \
${ROOT_DIR}/rtems_export/rtems-export-${rtems_os_version_lable}.tar.gz \
./build-${rtems_os_version_lable} \
./rtems-exe

0 comments on commit 607190a

Please sign in to comment.