chiark / gitweb /
Use users.db. trackdb* moves to lib/, as it's now used by client.c to
[disorder] / scripts / text2c
CommitLineData
460b9539 1#! /usr/bin/perl -w
a05e4467
RK
2my $class = "static";
3if($ARGV[0] eq '-extern') {
4 $class = "";
5 shift;
6}
460b9539 7my $name = shift;
8push(@out, "/* autogenerated file, do not edit */\n\n");
a05e4467 9push(@out, "$class const char $name\[] = \n");
460b9539 10while(<>) {
11 next if /arch-tag/;
12 s/[\\\"\?]/\\$&/g;
13 s/\n/\\n/g;
14 push(@out, " \"$_\"\n");
15}
16push(@out, ";\n");
17((print @out)
18 and (close STDOUT))
19 or die "$0: stdout: $!\n";