diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-31 12:50:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-31 12:50:57 +0000 |
commit | 1fca5f1c7bc55535666ba96494efae2730c2dbbb (patch) | |
tree | 8ef3246121c97232afb42fbd84a475852c8cd12d /syntax.pl | |
parent | 8c6bfaac6ab061404f67e3769b3e15360aa80d6a (diff) | |
download | irssi-1fca5f1c7bc55535666ba96494efae2730c2dbbb.zip |
Using find instead of grep -r.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@555 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'syntax.pl')
-rwxr-xr-x | syntax.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 (<docs/help/in/*.in>) { open (FILE, "$_"); @data = <FILE>; |