From b47766595e4b882c67658a6637557b0fbcbfc34d Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 10 Oct 2023 10:29:59 -0700 Subject: [PATCH] bump_dependency.bash: use - in version strings (#1028) Replace the `~` separator characters with `-` in homebrew formula version strings to satisfy osrf/homebrew-simulation#2390. Signed-off-by: Steve Peters --- source-repo-scripts/bump_dependency.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-repo-scripts/bump_dependency.bash b/source-repo-scripts/bump_dependency.bash index 671b4f8f9..f06b29675 100755 --- a/source-repo-scripts/bump_dependency.bash +++ b/source-repo-scripts/bump_dependency.bash @@ -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