File: add-changelog

package info (click to toggle)
barnowl 1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,472 kB
  • sloc: ansic: 36,670; perl: 20,938; sh: 1,598; makefile: 181
file content (16 lines) | stat: -rwxr-xr-x 259 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
version=$1;

if [ -z "$version" ] || [ "$#" -lt 2 ];  then
    echo "Usage: $0 VERSION REV-LIST-ARGS" >&2
    exit 1;
fi

shift

(
    echo $version;
    git log --no-merges --format=' * %s -%ae' "$@"
    echo
    cat ChangeLog
) | sponge ChangeLog