chiark / gitweb /
Sort the summary
authorian <ian>
Sun, 3 Mar 2002 18:48:36 +0000 (18:48 +0000)
committerian <ian>
Sun, 3 Mar 2002 18:48:36 +0000 (18:48 +0000)
Makefile
README

index 792385905beb9eac81da91377faf6b239b4ca0c4..55a55bf0eb6a06b407e92cdaad9704d3dadce9dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,8 @@ recv-%.mdiff:       send-%.log recv-%.log
 
 recv-%.summary:        recv-%.mdiff mdiff-summarise.pl
                ./mdiff-summarise.pl <$< >$@.1.tmp
-               @mv -f $@.1.tmp $@
+               sort -t: -n +1 <$@.1.tmp >$@.2.tmp
+               @mv -f $@.2.tmp $@
 
 %.sh:          %.template Makefile
                sed <$< >$@.tmp -e ' \
diff --git a/README b/README
index f6d526488544d0543705914bacc9e77463559c7a..d5acd3e464408f5e1d274a2ab04ad3fc64261774 100644 (file)
--- a/README
+++ b/README
@@ -113,6 +113,7 @@ example line (folded and indented here to make it easier to read:
 
 This means that packet no.7 either the packet didn't arrive, or
 tcpdump produced different a summary line for the second packet.
+The *.summary file is sorted crudely by the type of packet.
 
 The recv-*.summary and recv-*.mdiff files DO NOT contain information
 about packets whose bodies changed, unless tcpdump reported the change