File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- commitdiff=$1
3+ # Run from a MapCache git clone, ./release-notes.sh tag1..tag2 , e.g. for changes
4+ # from 1.8.0 to 1.8.1, run
5+ # ./release-notes.sh rel-1-8-0..rel-1-8-1
6+ # Output from this script can be appended to the changelogs after having been
7+ # manually filtered of irrelevant commits
48
5- if test -z $commitdiff ; then
9+ tags=$1
10+ if test -z $tags ; then
611 echo " usage: $0 startcommit..endcommit"
712 exit
813fi
914
10- git --no-pager log --no-merges --pretty=format:' %s (%an) : `%h <https://github.com/mapserver/mapcache/commit/%H>`__' $commitdiff | gsed ' s!#\([0-9]\+\)! `#\1 <https://github.com/mapserver/mapcache/issues/\1>`__ !g'
15+ SED=sed
16+ if [ " $( uname) " = " Darwin" ]; then
17+ SED=gsed
18+ fi
1119
20+ git --no-pager log --no-merges --pretty=format:' * %s (%an) : `%h <https://github.com/mapserver/mapcache/commit/%H>`__' $tags | $SED ' s!#\([0-9]\+\)! `#\1 <https://github.com/mapserver/mapcache/issues/\1>`__ !g'
Original file line number Diff line number Diff line change 22
33ms_version=$1
44
5- echo " release steps for mapcache version $ms_version (mapcache-$ms_version .tar.gz)"
5+ echo " "
6+ echo " # Release steps for mapcache version $ms_version (mapcache-$ms_version .tar.gz)"
67echo " "
78
89ms_version_suffix=` echo $ms_version | cut -s -d- -f2`
@@ -23,9 +24,9 @@ if [ ! -z $ms_version_suffix ]; then
2324fi
2425
2526echo " #"
26- echo " # make sure:"
27+ echo " # Make sure:"
2728echo " # - you are on branch-$ms_version_major -$ms_version_minor "
28- echo " # - you have edited HISTORY.TXT with changes related to this release"
29+ echo " # - you have edited MIGRATION_GUIDE.txt with changes related to this release"
2930echo " #"
3031echo " "
3132
@@ -47,8 +48,8 @@ echo "scp /tmp/mapcache-$ms_version.tar.gz download.osgeo.org:/osgeo/download/ma
4748
4849echo " "
4950echo " #"
50- echo " #optionally update doc site, these commands need tweaking before being ran"
51+ echo " # Optionally update doc site, these commands need tweaking before being ran"
5152echo " #"
5253
53- echo " /path/to/docs/scripts/changelog .sh rel-previous-tag..$tagname >> /path/to/docs/en/development/changelog/changelog-$ms_version_major -$ms_version_minor .txt"
54+ echo " /path/to/mapcache/release-notes .sh rel-previous-tag..$tagname >> /path/to/docs/en/development/changelog/changelog-$ms_version_major -$ms_version_minor .txt"
5455
You can’t perform that action at this time.
0 commit comments