瀏覽代碼

build: remove \r from shader files before compilation.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
4a938d239b
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/Makefile.am
  2. +1
    -1
      test/tutorial/Makefile.am

+ 1
- 1
src/Makefile.am 查看文件

@@ -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 查看文件

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



Loading…
取消
儲存