Add makerules to turn client.html and broadway.js into #include files

This commit is contained in:
Alexander Larsson
2010-11-18 21:26:40 +01:00
parent ded9bc698b
commit b07ead64ed
2 changed files with 35 additions and 0 deletions

15
gdk/broadway/toarray.pl Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/perl -w
my $FILENAME = $ARGV[0];
open FILE, $FILENAME or die "Cannot open $FILENAME";
my $ARRAYNAME = $ARGV[1];
print "static const char $ARRAYNAME\[\] =";
while (<FILE>) {
s@\\@\\\\@g;
s@"@\\"@g;
chomp ($_);
print "\n \"$_\\n\"";
}
print ";\n";