From 65666648acc86d5ce060a7198e5e684ada1e726e Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Sat, 28 Dec 2024 18:46:47 +1000 Subject: [PATCH] packaging: Return push-new-version to working version --- packaging/push-new-version | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/push-new-version b/packaging/push-new-version index 0ca8cc2..a8e3c74 100755 --- a/packaging/push-new-version +++ b/packaging/push-new-version @@ -16,9 +16,10 @@ CURRENT_VERSION=$(git describe --tags --abbrev=0) if [ $NEW_VERSION == $CURRENT_VERSION ]; then git tag --delete $CURRENT_VERSION git push --delete origin $CURRENT_VERSION +else + git grep --no-color -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g" + git commit --all --message="Update version to $NEW_VERSION" fi -git grep --no-color -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g" -git commit --all --message="Update version to $NEW_VERSION" git tag $NEW_VERSION git push git push --tags