You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
433 B
22 lines
433 B
use File::DosGlob;
|
|
@ARGV = map {
|
|
my @g = File::DosGlob::glob($_) if /[*?]/;
|
|
@g ? @g : $_;
|
|
} @ARGV;
|
|
|
|
open FILE, ">__tmpshaderlist.txt";
|
|
|
|
foreach $arg (@ARGV)
|
|
{
|
|
if( $arg =~ m/\.fxc$/i || $arg =~ m/\.vsh$/i || $arg =~ m/\.psh$/i )
|
|
{
|
|
print $arg . "\n";
|
|
print FILE $arg . "\n";
|
|
}
|
|
}
|
|
|
|
close FILE;
|
|
|
|
system "buildshaders.bat __tmpshaderlist";
|
|
|
|
unlink "__tmpshaderlist.txt";
|