Debian Codegraph @

source/util/gather_tiles_gui

raw
1 #!/usr/bin/env perl
2
3 use warnings;
4
5 for (grep /(\.cc|spl-data\.h)$/, `git ls-files`)
6 {
7 chomp;
8 open IN, "<", $_ or die "Can't read $_\n";
9 { undef local $/; $_ = <IN>; }
10 close IN;
11
12 for (/\bTILEG_[A-Z0-9_]+\b/g)
13 {
14 s/^TILEG_//;
15 $tile{$_}=1;
16 if (/^([A-Z0-9_]+)_ON$/)
17 {
18 $tile{"${1}_OFF"} =1;
19 $tile{"${1}_FOCUS"}=1;
20 $tile{"${1}_MAX"} =1;
21 $tile{"${1}_INACTIVE"}=1;
22 }
23 }
24 }
25
26 print "$_\n" for sort keys %tile;