File: release-notes.sh

package info (click to toggle)
mapcache 1.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,844 kB
  • sloc: ansic: 33,609; xml: 889; sh: 183; makefile: 61; python: 48
file content (20 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Run from a MapCache git clone, ./release-notes.sh tag1..tag2 , e.g. for changes
# from 1.8.0 to 1.8.1, run
# ./release-notes.sh rel-1-8-0..rel-1-8-1
# Output from this script can be appended to the changelogs after having been
# manually filtered of irrelevant commits

tags=$1
if test -z $tags; then
   echo "usage: $0 startcommit..endcommit"
   exit
fi

SED=sed
if [ "$(uname)" = "Darwin" ]; then
  SED=gsed
fi

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'