From 1fca5f1c7bc55535666ba96494efae2730c2dbbb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 31 Jul 2000 12:50:57 +0000 Subject: [PATCH] Using find instead of grep -r. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@555 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- syntax.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/syntax.pl b/syntax.pl index de8be984..697d3df0 100755 --- a/syntax.pl +++ b/syntax.pl @@ -8,10 +8,12 @@ # # This path has to be changed. It should point to your irssi/src directory # Remember to include the asterisk ('*'). -$SRC_PATH='src/*'; +$SRC_PATH='src'; # This is quick and dirty, but works for sure :) -$FOO = `grep -r -e '/* SYNTAX:' $SRC_PATH | sed 's/.*SYNTAX: //' > irssi_syntax`; +#$FOO = `grep -r -e '/* SYNTAX:' $SRC_PATH | sed 's/.*SYNTAX: //' > irssi_syntax`; +$FOO = `find $SRC_PATH -name '*.c' -print0 | xargs -l30 -0 grep -e '/* SYNTAX:' | sed 's/.*SYNTAX: //' > irssi_syntax`; + while () { open (FILE, "$_"); @data = ;