From: robertl Date: Fri, 15 Oct 2004 16:58:43 +0000 (+0000) Subject: Add tool for parsing cvsps output for easy cutting-pasting into changes.html X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~3897 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2df0130539ee4065cb7d0218a8cb792f56e3b4f5;p=gpsbabel.git Add tool for parsing cvsps output for easy cutting-pasting into changes.html --- diff --git a/gpsbabel/tools/mkchanges b/gpsbabel/tools/mkchanges new file mode 100644 index 000000000..ed3b9ec5f --- /dev/null +++ b/gpsbabel/tools/mkchanges @@ -0,0 +1,15 @@ +cvsps $* | awk ' +/^Date:/ { + logt = ""; + gsub("/", "-"); + split($0, dte, " "); + + printf "\n%s", dte[2]; + printf "
" + } +/^Log:/ { gsub("^Log:", ""); inlog = 1 } +/^Members:/ {printf "%s", logt ; inlog = 0; } +{ if (inlog > 0) { logt = logt $0 ;} } +' | sort -rn | sed "s##\\ +<\/tr>#g"