Pages: [1]
  Print  
Author Topic: Help with a shader generation script.  (Read 7666 times)
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« 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)
« Last Edit: July 31, 2016, 10:26:37 AM by Neon_Knight » Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Pages: [1]
  Print  
 
Jump to: