summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/makeinc_glsl.sh
blob: 2bc6a387991efead5c0a6feb5157804b2d0a1ee1 (plain) (blame)
1
2
3
4
5
6
#!sh
ext=${1##*.}
name=${1%.*}
(echo "const char *${name}_${ext}_src =";\
sed 's/..*/"&\\n"/' $1;\
echo ';') > obj/${name}_${ext}.inc