Gobligine/tools/shaders/convert-single-to-glsl.sh
2016-05-26 01:13:32 +02:00

1 line
257 B
Bash

for i in $(grep -l -PR "shaders = .?1" common-shaders/ | xargs grep shader0 | ruby -e "STDIN.read.split(\"\n\").each {|i| print i.split(':')[0].split('/')[0...-1].join('/'); print '/' + i.split('=')[-1].strip; puts }"); do ./cg2glsl.py "$i" "$i".glsl; done