Files
milsko/tools/harvard.pl
NishiOwO 234d726e3f add messagebox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@338 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-15 10:32:40 +00:00

15 lines
280 B
Perl
Executable File

#!/usr/bin/env perl
# $Id$
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);