mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-24 15:38:27 +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^).."
|
since="$(git describe --abbrev=0 HEAD^).."
|
||||||
fi
|
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
|
git diff "$since" -- AUTHORS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user