mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Fix changelog.sh for Linux
This commit is contained in:
parent
2e1e8f764e
commit
3e98bae5ec
11
changelog.sh
11
changelog.sh
@ -5,7 +5,16 @@ if [[ -z $since ]] ; then
|
||||
since="$(git describe --abbrev=0 HEAD^).."
|
||||
fi
|
||||
|
||||
git log --reverse --pretty=format:'* %s, @%aN)' "$since" | egrep 'fixes #\d|ref #\d' | sed 's/)[,. ]*,/,/' | sed 's/fixes #/#/g' | sed 's/ref #/#/g'
|
||||
case $(uname) in
|
||||
Darwin)
|
||||
grep="egrep"
|
||||
;;
|
||||
*)
|
||||
grep="grep -P"
|
||||
;;
|
||||
esac
|
||||
|
||||
git log --reverse --pretty=format:'* %s, @%aN)' "$since" | $grep 'fixes #\d|ref #\d' | sed 's/)[,. ]*,/,/' | sed 's/fixes #/#/g' | sed 's/ref #/#/g'
|
||||
|
||||
git diff "$since" -- AUTHORS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user