mail[Wesnoth-commits] r37310 - in /trunk/utils/mp-server: logfilter_irc logfilter_irc_color logfilter_irc_logged logfilter_irc_logged_color


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on July 28, 2009 - 17:28:
Author: soliton
Date: Tue Jul 28 17:28:07 2009
New Revision: 37310

URL: http://svn.gna.org/viewcvs/wesnoth?rev=37310&view=rev
Log:
added some logfilter scripts needed by tail_log_irc

Added:
    trunk/utils/mp-server/logfilter_irc   (with props)
    trunk/utils/mp-server/logfilter_irc_color   (with props)
    trunk/utils/mp-server/logfilter_irc_logged   (with props)
    trunk/utils/mp-server/logfilter_irc_logged_color   (with props)

Added: trunk/utils/mp-server/logfilter_irc
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/logfilter_irc?rev=37310&view=auto
==============================================================================
--- trunk/utils/mp-server/logfilter_irc (added)
+++ trunk/utils/mp-server/logfilter_irc Tue Jul 28 17:28:07 2009
@@ -1,0 +1,7 @@
+#!/bin/sed -f
+s/\t/ /g
+# remove the timestamp and the IP
+s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ 
[a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
+s/ info server://
+s/""/"/g
+/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] 
\(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( 
reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d

Propchange: trunk/utils/mp-server/logfilter_irc
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/utils/mp-server/logfilter_irc_color
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/logfilter_irc_color?rev=37310&view=auto
==============================================================================
--- trunk/utils/mp-server/logfilter_irc_color (added)
+++ trunk/utils/mp-server/logfilter_irc_color Tue Jul 28 17:28:07 2009
@@ -1,0 +1,17 @@
+#!/bin/sed -f
+s/\t/ /g
+# remove the timestamp and the IP
+s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ 
[a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
+s/ info server://
+s/""/"/g
+/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] 
\(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( 
reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
+
+s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 
<05server14>05/
+s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
+s/^<\([a-zA-Z0-9_-]\+\)>/                   14<12\114>6/;s/ 
*\(.\{25\}14>\)/\1/
+s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ ended game: .*$/05&/
+s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\).*$/14&/
+s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:.*$/14&/

Propchange: trunk/utils/mp-server/logfilter_irc_color
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/utils/mp-server/logfilter_irc_logged
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/logfilter_irc_logged?rev=37310&view=auto
==============================================================================
--- trunk/utils/mp-server/logfilter_irc_logged (added)
+++ trunk/utils/mp-server/logfilter_irc_logged Tue Jul 28 17:28:07 2009
@@ -1,0 +1,7 @@
+#!/bin/sed -f
+s/\t/ /g
+# remove the timestamp and the IP
+s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ 
[a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
+s/ info server://
+s/""/"/g
+/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] 
\(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( 
reloaded\|\)\|advanced\|ended\) game: \|.* and disconnected.\|has logged 
o\)/!d

Propchange: trunk/utils/mp-server/logfilter_irc_logged
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/utils/mp-server/logfilter_irc_logged_color
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/logfilter_irc_logged_color?rev=37310&view=auto
==============================================================================
--- trunk/utils/mp-server/logfilter_irc_logged_color (added)
+++ trunk/utils/mp-server/logfilter_irc_logged_color Tue Jul 28 17:28:07 2009
@@ -1,0 +1,17 @@
+#!/bin/sed -f
+s/\t/ /g
+# remove the timestamp and the IP
+s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ 
[a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
+s/ info server://
+s/""/"/g
+/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] 
\(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( 
reloaded\|\)\|advanced\|ended\) game: \|.* and disconnected.\|has logged 
o\)/!d
+
+s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 
<05server14>05/
+s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
+s/^<\([a-zA-Z0-9_-]\+\)>/                   14<12\114>6/;s/ 
*\(.\{25\}14>\)/\1/
+s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
+s/^[a-zA-Z0-9_-]\+ ended game: .*$/05&/
+s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\).*$/14&/
+s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:.*$/14&/

Propchange: trunk/utils/mp-server/logfilter_irc_logged_color
------------------------------------------------------------------------------
    svn:executable = *




Related Messages


Powered by MHonArc, Updated Tue Jul 28 22:01:25 2009