If you are interested, the following bash+awk script provides Perforce support
for Gource. The output is generated in the custom log format. Maybe you want to
add the script in some corner of your documentation.
p4 changes ...|awk '{print $2}'|p4 -x - describe -s|awk '(/^Change / || /^...
/) {if ($1 == "Change") {u=substr($4,1,index($4,"@")-1); t = $(NF-1) " " $NF;
gsub("/"," ",t); gsub(":"," ",t);time=mktime(t);} else {if ($NF=="add")
{c="A";} else if ($NF=="delete") {c="D";} else
{c="M";};f=substr($2,3,index($2,"#")-3);print time "|" u "|" c "|" f;}}'|sort -n
Thanks a lot for your great tool!
Original issue reported on code.google.com by olaf.kum...@coremedia.com on 21 Sep 2010 at 3:25
Original issue reported on code.google.com by
olaf.kum...@coremedia.com
on 21 Sep 2010 at 3:25