Site: desklet upgrade 0.0.6 => 0.0.7
[adesklets.git] / changelog.sh
blobe389c8684b413ea214870ba9f94007bd667f6f24
1 #! /bin/sh
2 #-------------------------------------------------------------------------------
3 # Written by S.Fourmanoit <syfou@users.sourceforge.net>, 2005
5 # Helper script that semi-automate the extraction of entries from
6 # git repository, producing minimaly compliant GNU ChangeLog.
8 # Note: Output is not 'as is' a good ChangeLog; things should be edited
9 # by hand.
11 #-------------------------------------------------------------------------------
13 ID=`cg tag-ls | sed 's/adesklets-//;s/_/ /g' | \
14 sort -n | gawk '{print $1*10000+$2*100+$3, $4}' | \
15 sort -r -n | head -n1 | gawk '{print $2}'`
17 echo -e "$(date +%Y-%m-%d)\t S.Fourmanoit <syfou@users.sourceforge.net>\n"
18 cg log -f -r $ID: | \
19 sed -n '/BKrev:/d;/^[[:space:]]*$/d;/(Logical change/d;/^[[:space:]]/p' | \
20 gawk 'BEGIN {ok=1} /^[ \t]*\* site/ {ok=0; next} /^[ \t]*\*/ {ok=1} ok==1 {print}'