Skip to content

Commit

Permalink
fix: add cyclonedds to release script.
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki AKAMINE <[email protected]>
  • Loading branch information
takam5f2 committed Sep 21, 2023
1 parent f620990 commit 865d491
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions release_script/release_caret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ ROS_TRACING_REPOS="ros2_tracing"
ROS_RCLCPP_REPOS="rclcpp"
ROS_RCL_REPOS="rcl"

# cyclonedds
CYCLONEDDS_REPOS="cyclonedds"

# variables
DRY_RUN=
TAG_ID=
Expand Down Expand Up @@ -133,6 +136,10 @@ ROS_RCLCPP_HASH=$(get_hash_from_repository "${ROOT_DIR}"/${ROS_RCLCPP_PATH})
ROS_RCL_PATH="src/ros2/${ROS_RCL_REPOS}"
ROS_RCL_HASH=$(get_hash_from_repository "${ROOT_DIR}"/${ROS_RCL_PATH})

# get hash number from cyclonedds
CYCLONEDDS_PATH="src/eclipse-cyclonedds/${CYCLONEDDS_REPOS}"
CYCLONEDDS_HASH=$(get_hash_from_repository "${ROOT_DIR}"/${CYCLONEDDS_REPOS})

# checkout caret repository.
${DRY_RUN} git checkout -b rc/"${TAG_ID}"

Expand All @@ -141,8 +148,10 @@ ${DRY_RUN} cp "${SCRIPT_DIR}"/template_caret.repos "${ROOT_DIR}"/caret.repos
${DRY_RUN} sed -i -e "s/ROS_TRACING_HASH/${ROS_TRACING_HASH}/g" "${ROOT_DIR}"/caret.repos
${DRY_RUN} sed -i -e "s/RCLCPP_HASH/${ROS_RCLCPP_HASH}/g" "${ROOT_DIR}"/caret.repos
${DRY_RUN} sed -i -e "s/RCL_HASH/${ROS_RCL_HASH}/g" "${ROOT_DIR}"/caret.repos
${DRY_RUN} sed -i -e "s/CYCLONEDDS_HASH/${CYCLONEDDS_HASH}/g" "${ROOT_DIR}"/caret.repos
${DRY_RUN} sed -i -e "s/CARET_TAG/${TAG_ID}/g" "${ROOT_DIR}"/caret.repos


${DRY_RUN} git add "${ROOT_DIR}"/caret.repos
${DRY_RUN} git commit -m "release(caret.repos): change version of sub repositories for ${TAG_ID}"

Expand Down
4 changes: 4 additions & 0 deletions release_script/template_caret.repos
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ repositories:
type: git
url: https://github.com/tier4/caret_common.git
version: CARET_TAG
eclipse-cyclonedds/cyclonedds:
type: git
url: https://github.com/eclipse-cyclonedds/cyclonedds.git
version: CYCLONEDDS_HASH

0 comments on commit 865d491

Please sign in to comment.