[quake3-commits] [ioquake/ioq3] 6ecfa4: Fix shader corruption on OpenBSD

Mickaël Thomas mickael9 at gmail.com
Mon Oct 16 11:23:17 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 6ecfa4f26387f46d2dea62cd632152559a8b7b2e
      https://github.com/ioquake/ioq3/commit/6ecfa4f26387f46d2dea62cd632152559a8b7b2e
  Author: Mickaël Thomas <mickael9 at gmail.com>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M Makefile

  Log Message:
  -----------
  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




More information about the quake3-commits mailing list