summaryrefslogtreecommitdiff
path: root/syntax.pl
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-31 12:50:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-31 12:50:57 +0000
commit1fca5f1c7bc55535666ba96494efae2730c2dbbb (patch)
tree8ef3246121c97232afb42fbd84a475852c8cd12d /syntax.pl
parent8c6bfaac6ab061404f67e3769b3e15360aa80d6a (diff)
downloadirssi-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-xsyntax.pl6
1 files 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 (<docs/help/in/*.in>) {
open (FILE, "$_");
@data = <FILE>;