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