Fix compiling GLSL shaders under Windows.
Now the `sed` command cope with files using Windows-style line endings.
This commit is contained in:
1 parent
e46e9846fc
commit
96f94a2891
1 file changed
+1
-1
@@ -1183,7 +1183,7 @@ define DO_REF_STR
|
|||||||
$(echo_cmd) "REF_STR $<"
|
$(echo_cmd) "REF_STR $<"
|
||||||
$(Q)rm -f $@
|
$(Q)rm -f $@
|
||||||
$(Q)echo "const char *fallbackShader_$(notdir $(basename $<)) =" >> $@
|
$(Q)echo "const char *fallbackShader_$(notdir $(basename $<)) =" >> $@
|
||||||
$(Q)cat $< | sed 's/^/\"/;s/$$/\\n\"/' >> $@
|
$(Q)cat $< | sed -e 's/^/\"/;s/$$/\\n\"/' -e 's/\r//g' >> $@
|
||||||
$(Q)echo ";" >> $@
|
$(Q)echo ";" >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user