github.com/vmware/go-vcloud-director/v2@v2.24.0/.changes/init.sh (about) 1 #!/usr/bin/env bash 2 3 # This script is used at the start of a new release cycle, to 4 # initialize the CHANGELOG 5 # Run at the top of the repository, as 6 # $ .changes/init.sh VERSION 7 # (without the initial 'v') 8 9 VERSION=$1 10 11 if [ -z "$VERSION" ] 12 then 13 echo "Syntax: $0 VERSION (without initial 'v')" 14 15 exit 1 16 fi 17 18 starts_with_v=$(echo $VERSION | grep '^v') 19 if [ -n "$starts_with_v" ] 20 then 21 echo "The version should be without the initial 'v'" 22 exit 1 23 fi 24 25 echo "Copy the following lines at the top of CHANGELOG.md" 26 echo "" 27 echo "" 28 echo "## $VERSION (Unreleased)" 29 echo "" 30 echo "Changes in progress for v$VERSION are available at [.changes/v$VERSION](https://github.com/vmware/go-vcloud-director/tree/main/.changes/v$VERSION) until the release." 31 echo "" 32