]>
jfr.im git - irc/evilnet/x3.git/blob - ChangeLog.SH
2 # Convert git log to GNU-style ChangeLog file.
4 TARGET
=$(dirname $0)/ChangeLog
5 CLASSIC
=$(dirname $0)/ChangeLog.classic
6 MSG
="X3 ChangeLog (Generated by ChangeLog.SH from GIT commit logs)\nThis file is auto-generated from ChangeLog.SH\n\n"
7 if test -d ".git"; then
8 #Put new stuff at the top, starting at 1.8.1 the revision we started
9 #using git and stopped using ChangeLog manually
10 echo "$MSG" > "$TARGET"
11 git log
--format="%ai %aN %n%n%x09* %s%d%n" 1.8.1..HEAD
>> "$TARGET"
12 #Then put historical stuff in as it was
13 cat "$CLASSIC" >> "$TARGET"
16 echo "No git repository present."