From: Fabian Groffen Date: Fri, 26 Mar 2010 10:50:31 +0000 (+0100) Subject: drop svnlogmsg.awk script, we lose the verbosity, maybe someday we revive it again... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c15d746a740d1e6042c3910222597cdd11e44caa;p=portage.git drop svnlogmsg.awk script, we lose the verbosity, maybe someday we revive it again, since we can see the trees coming together, it may be enough to track what was in --- diff --git a/svnlogmsg.awk b/svnlogmsg.awk deleted file mode 100755 index 856dc4891..000000000 --- a/svnlogmsg.awk +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash - -# bla bla -# probably can be done much better, but I got tired of copy 'n' paste -# from mutt into a commit message ... - -# just one big reminder for myself: svn log and svn merge/diff theirs -r -# argument are *NOT* semantically the same! The former is some -# inclusive thing, where the later is exclusive on the start range. -# e.g.: svn log make.conf.arm.diff -r4689:4690 -# results in the log for revision 4689, but -# svn diff make.conf.arm.diff -r4689:4690 -# results in an empty set - -[[ -z $1 ]] && exit -1 - -if [[ ${1/:/} != $1 ]] ; then - t1=${1%:*} ; t1=${t1#-r} ; t1=${t1#r} - t2=${1#*:} - # see above - t1=$((t1 + 1)) - r=${t1}:${t2} -else - r=${1#-r} ; r=${r#r} -fi - -svn log ../../trunk -r$r | awk -v revs=$1 ' -BEGIN { - term = 0 - print "" - print "Merged from trunk " revs - print "" -} -{ - if ($0 ~ /^--*$/) { - if (term == 1) { - print "" - term = 0 - } - print "" - } else if ($0 ~ /^r[0-9][0-9]* \| .*$/) { - print "" - } - print "
" substr($1, 2) "
" - if ($3 == "vapier") { - $3 = "SpankMan" - } else if ($3 == "antarus") { - $3 = "WarnerBro" - } - print $3 "
" - } else if ($0 ~ /^..*$/) { - print $0 - term = 1 - } -} -END { - if (term == 1) { - print "
" -} -' | elinks -dump | sed -e '/+-\++/d' -e 's/|[-+]\+|//'