OpenArena Message Boards

OpenArena Contributions => Graphics => Topic started by: Neon_Knight on July 31, 2016, 08:40:19 AM



Title: Help with a shader generation script.
Post by: Neon_Knight on July 31, 2016, 08:40:19 AM
I'm trying to write a batch script (I'll later do a .sh version) which takes a file where all the shaders are stored, and splits it into several separated files based on shader folder (i.e. textures/acc_dm3/comptop -> tex-acc_dm3.shader). I have already managed to merge all of the .shader files into a single file (allshaders.original), but I need to split this file into smaller, separate ones using that criteria. Any ideas?

P.S: Also, aside of the file splitting, I need to format these filenames in such a way that they reflect where they come from (i.e. textures/acc_dm3 -> textures-acc_dm3.shader)