浏览代码

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



正在加载...
取消
保存