ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/genkeywords
(Generate patch)

Comparing deliantra/server/include/genkeywords (file contents):
Revision 1.20 by root, Sat May 7 17:14:41 2011 UTC vs.
Revision 1.22 by root, Fri Nov 18 20:20:05 2016 UTC

1#!/opt/bin/perl 1#!/opt/bin/perl
2
3# 2#
4# This file is part of Deliantra, the Roguelike Realtime MMORPG. 3# This file is part of Deliantra, the Roguelike Realtime MMORPG.
5# 4#
6# Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5# Copyright (©) 2005,2006,2007,2008,2009,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
7# 6#
8# Deliantra is free software: you can redistribute it and/or modify it under 7# Deliantra is free software: you can redistribute it and/or modify it under
9# the terms of the Affero GNU General Public License as published by the 8# the terms of the Affero GNU General Public License as published by the
10# Free Software Foundation, either version 3 of the License, or (at your 9# Free Software Foundation, either version 3 of the License, or (at your
11# option) any later version. 10# option) any later version.
12# 11#
13# This program is distributed in the hope that it will be useful, 12# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details. 15# GNU General Public License for more details.
17# 16#
18# You should have received a copy of the Affero GNU General Public License 17# You should have received a copy of the Affero GNU General Public License
19# and the GNU General Public License along with this program. If not, see 18# and the GNU General Public License along with this program. If not, see
20# <http://www.gnu.org/licenses/>. 19# <http://www.gnu.org/licenses/>.
21# 20#
22# The authors can be reached via e-mail to <support@deliantra.net> 21# The authors can be reached via e-mail to <support@deliantra.net>
23# 22#
24 23
25my %ARG = @ARGV; 24my %ARG = @ARGV;
26 25
27use List::Util; 26use List::Util;
28 27
129 is_blind 128 is_blind
130 is_buildable 129 is_buildable
131 is_cauldron 130 is_cauldron
132 is_dust 131 is_dust
133 is_floor 132 is_floor
133 is_transparent_floor
134 is_hilly 134 is_hilly
135 is_lightable 135 is_lightable
136 is_thrown 136 is_thrown
137 is_turnable 137 is_turnable
138 is_used_up 138 is_used_up
385 authour 385 authour
386 size 386 size
387 index 387 index
388); 388);
389 389
390open GPERF, "|-", "exec $ARG{GPERF} -m50 >kw_hash.h" 390open GPERF, "|-", "exec $ARG{GPERF} -m50 >include/kw_hash.h"
391 or die "$ARGV{GPERF}: $!"; 391 or die "$ARGV{GPERF}: $!";
392 392
393print GPERF <<EOF; 393print GPERF <<EOF;
394%language=C++ 394%language=C++
395%enum 395%enum
423 join ", ", map length, @kw; 423 join ", ", map length, @kw;
424 424
425close GPERF 425close GPERF
426 or die "$ARG{GPERF}: failed to run"; 426 or die "$ARG{GPERF}: failed to run";
427 427
428open KW, ">", "keyword.h"; 428open KW, ">", "include/keyword.h";
429 429
430print KW <<EOF; 430print KW <<EOF;
431// 431//
432// AUTOGENERATED: this is a generated file 432// AUTOGENERATED: this is a generated file
433// edit include/genkeywords instead 433// edit include/genkeywords instead

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines