# This file is part of Smap. # Copyright (C) 2010 Sergey Poznyakoff # # Smap is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # Smap is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Smap. If not, see . /^[0-9]+ .* +<[^>]+>/ { s = strftime("%F", $1) sub(/^[0-9]+ +/,"") if (s == datestr && author == $0) next datestr = s author = $0 if (runlen) { runlen = 0; print "" } printf("%s %s\n", datestr, author) next } /^Signed-off-by:/ { next } /^$/ { next } NF==0 { runlen++ next } { if (runlen) { runlen = 0; print "" } print "\t" $0 } END { print "\f" # Make sure Emacs won't recognize this line: print "Local", "Variables:" print "mode: change-log" print "version-control: never" print "buffer-read-only: t" print "End:" }