Counter Strike : Global Offensive Source Code
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.

21 lines
433 B

  1. use File::DosGlob;
  2. @ARGV = map {
  3. my @g = File::DosGlob::glob($_) if /[*?]/;
  4. @g ? @g : $_;
  5. } @ARGV;
  6. open FILE, ">__tmpshaderlist.txt";
  7. foreach $arg (@ARGV)
  8. {
  9. if( $arg =~ m/\.fxc$/i || $arg =~ m/\.vsh$/i || $arg =~ m/\.psh$/i )
  10. {
  11. print $arg . "\n";
  12. print FILE $arg . "\n";
  13. }
  14. }
  15. close FILE;
  16. system "buildshaders.bat __tmpshaderlist";
  17. unlink "__tmpshaderlist.txt";