mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 20:49:49 +00:00
17 lines
306 B
Perl
17 lines
306 B
Perl
|
#!/usr/bin/perl
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
my $file = shift;
|
||
|
open FILE, "<", $file or die "open $file: $!";
|
||
|
my $name = $file;
|
||
|
$name =~ s|.*/||;
|
||
|
$name =~ s/[-.]/_/g;
|
||
|
print "static GLchar ${name}_src[] =\n";
|
||
|
while (<FILE>) {
|
||
|
chomp;
|
||
|
printf " \"%s\\n\"\n", $_;
|
||
|
}
|
||
|
print " \"\\n\";\n";
|
||
|
close FILE;
|