chiark / gitweb /
transition various bits of code to unicode.h interfaces
[disorder] / scripts / text2c
... / ...
CommitLineData
1#! /usr/bin/perl -w
2my $name = shift;
3push(@out, "/* autogenerated file, do not edit */\n\n");
4push(@out, "static const char $name\[] = \n");
5while(<>) {
6 next if /arch-tag/;
7 s/[\\\"\?]/\\$&/g;
8 s/\n/\\n/g;
9 push(@out, " \"$_\"\n");
10}
11push(@out, ";\n");
12((print @out)
13 and (close STDOUT))
14 or die "$0: stdout: $!\n";