mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix shader corruption on OpenBSD
OpenBSD's sed (and possibly other platforms') interprets `\r` as a literal `r` rather than a carriage return, which leads to all `r` letters being stripped from the shaders' source. This fixes the issue by using the POSIX-compliant `tr -d '\r'` to remove carriage returns. Thanks to @ryan-sg for reporting the issue
This commit is contained in:
parent
7d012f229e
commit
6ecfa4f263
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1182,7 +1182,7 @@ define DO_REF_STR
|
|||
$(echo_cmd) "REF_STR $<"
|
||||
$(Q)rm -f $@
|
||||
$(Q)echo "const char *fallbackShader_$(notdir $(basename $<)) =" >> $@
|
||||
$(Q)cat $< | sed -e 's/^/\"/;s/$$/\\n\"/' -e 's/\r//g' >> $@
|
||||
$(Q)cat $< | sed -e 's/^/\"/;s/$$/\\n\"/' | tr -d '\r' >> $@
|
||||
$(Q)echo ";" >> $@
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue