]> jfr.im git - irc/evilnet/x3.git/blame - ChangeLog.SH
update faq to match 2008 change to default chanserv.register profile
[irc/evilnet/x3.git] / ChangeLog.SH
CommitLineData
63aaa6dc
R
1#!/bin/sh
2# Convert git log to GNU-style ChangeLog file.
3# (C) Chris
4TARGET=$(dirname $0)/ChangeLog
5CLASSIC=$(dirname $0)/ChangeLog.classic
6MSG="X3 ChangeLog (Generated by ChangeLog.SH from GIT commit logs)\nThis file is auto-generated from ChangeLog.SH\n\n"
7if 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
15else
16 echo "No git repository present."
17 exit 1
18fi