File: mkchangelog.sh

package info (click to toggle)
mutt 2.0.5-4.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,212 kB
  • sloc: ansic: 97,386; sh: 4,703; perl: 2,018; makefile: 726; python: 547; yacc: 318
file content (17 lines) | stat: -rwxr-xr-x 663 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Generates the ChangeLog since the last release.

# This would generate based on the last update of the ChangeLog, instead:
# lrev=$(git log -1 --pretty=format:"%H" ChangeLog)

lrev=`git describe --tags --match 'mutt-*-rel' --abbrev=0`

# This is a rough approximation of the official ChangeLog format
# previously generated by hg.  Git doesn't provide enough formatting
# tools to produce this more accurately.  We could post-format it with
# a script, but I'm not sure enough people care about this file
# anymore to make it worth the effort.
git log --name-status \
    --pretty=format:"%ai  %an  <%ae> (%h)%n%n%w(,8,8)* %s%n%+b" \
    ${lrev}^..