From bdf9e5b9efe230eab60435ef707c8a96f31b42df Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 9 Oct 2023 19:38:39 -0700 Subject: [PATCH] bump_dependency.bash: use - in version strings 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