]> Git Repo - qemu.git/blame - scripts/shaderinclude.pl
dump-guest-memory.py: fix "You can't do that without a process to debug"
[qemu.git] / scripts / shaderinclude.pl
CommitLineData
b7d5a9c2 1#!/usr/bin/env perl
d98bc0b6
GH
2use strict;
3use warnings;
4
5my $file = shift;
6open FILE, "<", $file or die "open $file: $!";
7my $name = $file;
8$name =~ s|.*/||;
9$name =~ s/[-.]/_/g;
10print "static GLchar ${name}_src[] =\n";
11while (<FILE>) {
12 chomp;
13 printf " \"%s\\n\"\n", $_;
14}
15print " \"\\n\";\n";
16close FILE;
This page took 0.135924 seconds and 4 git commands to generate.