milsko/tools/harvard.pl
IoI_xD c705d2b98c
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
generate pkgconfig file (don't commit yet i fucked it up)
2026-07-15 17:32:53 -07:00

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