Skip to content

Commit

Permalink
bump_dependency.bash: use - in version strings (#1028)
Browse files Browse the repository at this point in the history
Replace the `~` separator characters with `-` in
homebrew formula version strings to satisfy
osrf/homebrew-simulation#2390.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Oct 10, 2023
1 parent 5324467 commit b477665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source-repo-scripts/bump_dependency.bash
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ for ((i = 0; i < "${#LIBRARIES[@]}"; i++)); do
# version
PREV_VER_NONNEGATIVE=$([[ "${PREV_VER}" -lt 0 ]] && echo "0" || echo "${PREV_VER}")
sed -i "/ version /d" $FORMULA
sed -i "/^ url.*/a\ version \"${PREV_VER_NONNEGATIVE}.999.999~0~`date +"%Y%m%d"`\"" $FORMULA
sed -i "/^ url.*/a\ version \"${PREV_VER_NONNEGATIVE}.999.999-0-`date +"%Y%m%d"`\"" $FORMULA
# Remove extra blank lines
cat -s $FORMULA | tee $FORMULA

Expand Down

0 comments on commit b477665

Please sign in to comment.