summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-05-25 16:39:41 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-05-25 16:39:41 +0000
commit2e7e88f7fab4ab45711cc63b26dd355dea811824 (patch)
treea8673d335f4695fc9db82bf40a264d6bcb8503f8
parent5816e4526e2794b95a92fb545cb139170ec1d9f6 (diff)
downloadweechat-2e7e88f7fab4ab45711cc63b26dd355dea811824.zip
Replaced tail by sed
-rwxr-xr-xdoc/buildxml.pl8
-rwxr-xr-xweechat/doc/buildxml.pl8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/buildxml.pl b/doc/buildxml.pl
index ba59edfd4..9af6f5b95 100755
--- a/doc/buildxml.pl
+++ b/doc/buildxml.pl
@@ -49,13 +49,13 @@ $warning_do_not_edit = "\n<!-- ********* WARNING! *********\n\n"
foreach $lng (@all_lang)
{
create_commands ($lng, $all_encodings{$lng},
- "weechat-curses -w | tail +3", "weechat_commands");
+ "weechat-curses -w | sed 1,2d", "weechat_commands");
create_commands ($lng, $all_encodings{$lng},
- "weechat-curses -i | tail +3", "irc_commands");
+ "weechat-curses -i | sed 1,2d", "irc_commands");
create_key_func ($lng, $all_encodings{$lng},
- "weechat-curses -f | tail +3", "key_functions");
+ "weechat-curses -f | sed 1,2d", "key_functions");
create_config ($lng, $all_encodings{$lng},
- "weechat-curses -c | tail +3", "config");
+ "weechat-curses -c | sed 1,2d", "config");
print "\n";
}
diff --git a/weechat/doc/buildxml.pl b/weechat/doc/buildxml.pl
index ba59edfd4..9af6f5b95 100755
--- a/weechat/doc/buildxml.pl
+++ b/weechat/doc/buildxml.pl
@@ -49,13 +49,13 @@ $warning_do_not_edit = "\n<!-- ********* WARNING! *********\n\n"
foreach $lng (@all_lang)
{
create_commands ($lng, $all_encodings{$lng},
- "weechat-curses -w | tail +3", "weechat_commands");
+ "weechat-curses -w | sed 1,2d", "weechat_commands");
create_commands ($lng, $all_encodings{$lng},
- "weechat-curses -i | tail +3", "irc_commands");
+ "weechat-curses -i | sed 1,2d", "irc_commands");
create_key_func ($lng, $all_encodings{$lng},
- "weechat-curses -f | tail +3", "key_functions");
+ "weechat-curses -f | sed 1,2d", "key_functions");
create_config ($lng, $all_encodings{$lng},
- "weechat-curses -c | tail +3", "config");
+ "weechat-curses -c | sed 1,2d", "config");
print "\n";
}