milsko/tools/harvard.pl
IoIxD 8c1c9228b7
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
use unix2dos to undo what windows did
2026-07-16 15:44:09 -07:00

12 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);