Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added script to create changelog from http://binarystatic.wordpress.c…
  • Loading branch information
timlinux committed Sep 10, 2013
1 parent 778706e commit 5866df9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/create_changelog.sh
@@ -0,0 +1,15 @@
#!/bin/sh
# Convert git log to GNU-style ChangeLog file.
# (C) Chris
if test -d ".git"; then
git log --date-order --date=short | \
sed -e '/^commit.*$/d' | \
awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \
sed -e 's/^Author: //g' | \
sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' > ChangeLog
exit 0
else
echo "No git repository present."
exit 1
fi

0 comments on commit 5866df9

Please sign in to comment.