You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/28 21:56:36 UTC

[GitHub] [arrow] kou commented on pull request #10824: [MINOR] Bump 5.0.0 version in r/NEWS.md

kou commented on pull request #10824:
URL: https://github.com/apache/arrow/pull/10824#issuecomment-888647510


   How about the following?
   
   ```diff
   index 93ddb18b7..d9b0ef798 100644
   --- a/dev/release/utils-prepare.sh
   +++ b/dev/release/utils-prepare.sh
   @@ -25,11 +25,9 @@ update_versions() {
      case ${type} in
        release)
          local version=${base_version}
   -      local r_version=${base_version}
          ;;
        snapshot)
          local version=${next_version}-SNAPSHOT
   -      local r_version=${base_version}.9000
          ;;
      esac
    
   @@ -121,17 +119,14 @@ update_versions() {
        DESCRIPTION
      rm -f DESCRIPTION.bak
      git add DESCRIPTION
   +  # Replace dev version with release version
   +  sed -i.bak -E -e \
   +    "0,/^# arrow /s/^# arrow .+/# arrow ${base_version}/" \
   +    NEWS.md
      if [ ${type} = "snapshot" ]; then
        # Add a news entry for the new dev version
   -    echo "dev"
   -    sed -i.bak -E -e \
   -      "0,/^# arrow /s/^(# arrow .+)/# arrow ${r_version}\n\n\1/" \
   -      NEWS.md
   -  else
   -    # Replace dev version with release version
   -    echo "release"
        sed -i.bak -E -e \
   -      "0,/^# arrow /s/^# arrow .+/# arrow ${r_version}/" \
   +      "0,/^# arrow /s/^(# arrow .+)/# arrow ${base_version}.9000\n\n\1/" \
          NEWS.md
      fi
      rm -f NEWS.md.bak
   ```
   
   For release:
   
      * `4.0.1.9000` is replaced with `5.0.0`
   
   For snapshot:
   
     * `4.0.1.9000` is replaced with `5.0.0`
     * `5.0.0.9000` is added


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org