]> git.ipfire.org Git - thirdparty/pdns.git/blame - build-scripts/git-to-changelog-merges
Add support for dnsdist-15 to repo script.
[thirdparty/pdns.git] / build-scripts / git-to-changelog-merges
CommitLineData
51d7b436
PL
1#!/bin/sh
2
3if [ "$1" = "-" ]; then
4 cat
5else
6 git log --merges --pretty=format:'- %sXXX %b (AUTHOR)' "$@" |\
7 perl -pe 's! from ([^/]+).+XXX (.+) \(AUTHOR\)!: \2 (\1)!g' |\
8 perl -pe 's!Merge pull request #([[:digit:]]+)![#\1](https://github.com/PowerDNS/pdns/pull/\1)!g' |\
2c320f75 9 perl -pe 's![#[[:digit:]]+]\(.+\): Backport #([[:digit:]]+)![#\1](https://github.com/PowerDNS/pdns/pull/\1)!g' |\
f845f68a 10 perl -pe 's!\((rgacogne|habbie|ahupowerdns|pieterlexis|omoerbeek|aerique|chbruyand)\)!!gi' |\
4d046bbf 11 perl -pe 's!\(mind04\)!(Kees Monshouwer)!g' |\
fdc0d465 12 perl -pe 's! $!!' |\
51d7b436
PL
13 grep -v dnsdist
14fi