File: gen-changelog.sh

package info (click to toggle)
node-lockfile 1.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 264 kB
  • sloc: sh: 8; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
#!/bin/bash
(
  echo '# Changes'
  echo ''
  git log --first-parent --pretty=format:'%s' \
    | grep -v '^update changelog' \
    | perl -p -e 's/^((v?[0-9]+\.?)+)$/\n## \1\n/g' \
    | perl -p -e 's/^([^#\s].*)$/* \1/g'
)> CHANGELOG.md