Skip to content

Commit

Permalink
word conversion utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
hardaker committed Nov 27, 2010
1 parent 3f65397 commit ab932f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions words/Makefile
@@ -0,0 +1,7 @@

FILES=100words.h 200words.h 300words.h 400words.h 500words.h

all: $(FILES)

%.h: %.txt convert.pl
perl convert.pl $< > $@
9 changes: 9 additions & 0 deletions words/convert.pl
@@ -0,0 +1,9 @@
#!/usr/bin/perl

my ($num) = ($ARGV[0] =~ /^(...)/);

print "words[N$num] = new QList<QString>;\n";
while(<>) {
chomp;
print "words[N$num]->push_back(\"$_\");\n";
}

0 comments on commit ab932f9

Please sign in to comment.