File: generate-changelog.sh

package info (click to toggle)
evince 3.38.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,428 kB
  • sloc: ansic: 81,222; cpp: 6,108; xml: 707; sh: 91; makefile: 25; python: 10
file content (13 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -d "$1/.git" ]; then
	git log -M -C --name-status --date=short --no-color | fmt --split-only > $2.tmp &&
	mv -f $2.tmp $2 ||
	{
		rm -f $2.tmp &&
		echo "Failed to generate ChangeLog, your ChangeLog may be outdated" >&2;
	}
else
	echo "Git repository not found" >&2
	exit 1
fi