Duke's utils
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
501 B

#!/bin/sh
CHANGELOG=`ls | egrep 'change|history' -i`
DATE=`date +'%Y-%m-%d'`
HEAD="\nn.n.n / $DATE \n==================\n"
if test "$1" = "--list"; then
version=`git tag | tail -n 1`
if test -z "$version"; then
git log --pretty="format: * %s"
else
git log --pretty="format: * %s" $version..
fi
else
tmp="/tmp/changelog"
echo $HEAD > $tmp
git-changelog --list >> $tmp
echo '' >> $tmp
cat $CHANGELOG >> $tmp
mv $tmp $CHANGELOG
test -n "$EDITOR" && $EDITOR $CHANGELOG
fi