Bläddra i källkod

build: remove \r from shader files before compilation.

legacy
Sam Hocevar sam 12 år sedan
förälder
incheckning
4a938d239b
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. +1
    -1
      src/Makefile.am
  2. +1
    -1
      test/tutorial/Makefile.am

+ 1
- 1
src/Makefile.am Visa fil

@@ -57,7 +57,7 @@ SUFFIXES = .lolfx
%.lolfx.cpp: %.lolfx
echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
$(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&\\n"/' >> $@.tmp
$(SED) 's/"/\\"/g' $^ | $(SED) 's/\([^\r]*\).*/"\1\\n"/' >> $@.tmp
echo ";" >> $@.tmp
mv $@.tmp $@



+ 1
- 1
test/tutorial/Makefile.am Visa fil

@@ -15,7 +15,7 @@ SUFFIXES = .lolfx
%.lolfx.cpp: %.lolfx
echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
$(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&\\n"/' >> $@.tmp
$(SED) 's/"/\\"/g' $^ | $(SED) 's/\([^\r]*\).*/"\1\\n"/' >> $@.tmp
echo ";" >> $@.tmp
mv $@.tmp $@



Laddar…
Avbryt
Spara