]> git.proxmox.com Git - mirror_qemu.git/blame - scripts/shaderinclude.pl
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
[mirror_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;