Sha256: fcfb1fc9f94878afa345e117c83c18efbf5a62f5a2899475daffdb5c367024fd
Contents?: true
Size: 381 Bytes
Versions: 60
Compression:
Stored size: 381 Bytes
Contents
#!/usr/bin/perl while($line=<STDIN>) { if ($line =~ /\;\s*path\s*=\s*([^\;]+)\;/) { $filepath = $1; if ($filepath =~ /\.(h|hpp)$/) { $type = 0; } elsif ($filepath =~ /\.(c|cpp)$/) { $type = 1; } else { $type = 2; } push @{$FILES[$type]}, $filepath; } } for $type (0..$#FILES) { for $filepath (@{$FILES[$type]}) { print "$filepath\\\n"; } print "\n"; }
Version data entries
60 entries across 60 versions & 2 rubygems