File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 19
19
# Gradle
20
20
** /.gradle
21
21
** /build /
22
+
23
+ /CHANGES.txt
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # This script writes the changelog in a human-readable format.
4
+ #
5
+ # You'll probably want to edit manually the result of executing the script.
6
+ #
7
+ if [[ $# -eq 0 ]] ; then
8
+ echo " No version supplied (e.g. '4.0.0')"
9
+ exit 1
10
+ fi
11
+ OLDTAG=` git tag -l --merged master --sort=-taggerdate| head -1`
12
+ echo " Writing changes from tag $OLDTAG "
13
+ TITLE=" XML-DTD CHANGES"
14
+ VERHDR=" Version ${1} "
15
+ OUTFILE=" CHANGES.txt"
16
+ echo -en " ${TITLE} \\ r\\ n${TITLE// ?/ =} \\ r\\ n\\ r\\ n${VERHDR} \\ r\\ n${VERHDR// ?/ -} \\ r\\ n\\ r\\ n" > ${OUTFILE}
17
+ git log --reverse --pretty=format:%s ${OLDTAG} ..| sed -e ' s/^/- /' | fold -s| sed -r ' s/^([^-])/ \1/' | sed -e ' s/$/\r/' >> ${OUTFILE}
18
+ echo -en " \\ n" >> ${OUTFILE}
You can’t perform that action at this time.
0 commit comments