Sfoglia il codice sorgente

build: remove \r from shader files before compilation.

legacy
Sam Hocevar sam 12 anni fa
parent
commit
4a938d239b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      src/Makefile.am
  2. +1
    -1
      test/tutorial/Makefile.am

+ 1
- 1
src/Makefile.am Vedi File

@@ -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 Vedi File

@@ -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 $@



Caricamento…
Annulla
Salva