Tool creation to modify source files

Hi, I was wondering if its possible to automate a shader model creation. A tool that somehow creates the necessary files with the input data. Right now its a paint to do it since you have to dive into 500 files.

Its possible to auto generate the necessary files so you just have to worry about names/functions etc?
Ideally this tool will be updated for each new version, dont even know if its possible or easy to do.

Which will be the best way to create something like this?