]> jfr.im git - irc/evilnet/x3.git/blob - ChangeLog.SH
Fix typos and copy errors in chanserv help
[irc/evilnet/x3.git] / ChangeLog.SH
1 #!/bin/sh
2 # Convert git log to GNU-style ChangeLog file.
3 # (C) Chris
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"
14 exit 0
15 else
16 echo "No git repository present."
17 exit 1
18 fi