Fix bad '... \\' escape in ghcversion.h generation
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 19 Jan 2015 11:18:02 +0000 (12:18 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Mon, 19 Jan 2015 11:18:02 +0000 (12:18 +0100)
commit1289048eaf31915b9335c6f7e0b7b64625ab0ed5
treec25ab1e9efae44d7dd46a20e6eb44e73e04a3bff
parentff4733f4e0355085002a1f9053ba2276e92d2cb6
Fix bad '... \\' escape in ghcversion.h generation

Today I learned about the peculiarities of escaping within
single-quotes:

Turns out,

  echo 'foo \\'

emits

  foo \\

rather than escaping the '\'. Curiously, if you need to escape a '
within single-quotes, here's how to do it

  echo 'foo '\'' bar'

which will emit

  foo ' bar

This fixes #10002
includes/ghc.mk