2 #-------------------------------------------------------------------------------
3 # Written by S.Fourmanoit <syfou@users.sourceforge.net>, 2005
5 # Helper script that semi-automate the extraction of entries from
6 # bitkeeper's ChangeSet, producing minimaly compliant GNU ChangeLog.
8 # Note: Output is not 'as is' a good ChangeLog; things should be edited
11 #-------------------------------------------------------------------------------
13 echo -e "$(date +%Y-%m-%d)\t S.Fourmanoit <syfou@users.sourceforge.net>\n"
15 # Get the latest tagged changeset date
17 CHANGESET
=$
(bk prs
-d'$if(:TAG:){:UTC:\n}' ChangeSet | \
18 sed -n '/=/!p' |
sed '1!d')
20 # Get everything worked on since lass tagged date
22 find .
-path './BitKeeper' -prune -o -path '*SCCS*' -prune \
23 -o -type f
-not -name 'ChangeSet' \
24 -exec bk prs
-d':UTC:\t:C:\n' \
{\
} ';' | \
25 sed 's/^=* \([^[:space:]]\+\) .*/*\1/' |
(
27 if echo "${LINE}" |
grep '^*' > /dev
/null
; then
28 FILE
=$
(echo "${LINE}" |
sed 's/\*//')
30 if test "$(echo "$LINE" | \
31 cut -d"$
(echo -e "\t")" -f1)" -gt "${CHANGESET}" ; then
32 COMMENT
=$
(echo "${LINE}" | \
33 sed 's/^[^[:space:]]\+//;s/^[[:space:]]\+//' )
34 if ! echo "${FILE}" |
grep '^site/' > /dev
/null
; then
35 echo -e "\t * $FILE $COMMENT"