mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-30 22:20:50 +00:00
13 lines
272 B
Perl
Executable File
13 lines
272 B
Perl
Executable File
#!/usr/bin/env perl
|
|
open(IN, "<", "resource/harvard.txt");
|
|
print("const char* harvard[] = {\n");
|
|
while (my $l = <IN>) {
|
|
$l =~ s/\r?\n$//;
|
|
if ($l =~ /^[ \t]*[0-9]+\. (.+)$/) {
|
|
print(" \"" . $1 . "\",\n");
|
|
}
|
|
}
|
|
print(" NULL\n");
|
|
print("};\n");
|
|
close(IN);
|