Unescape #{} in the last commit title

Get rid of unknown escape sequence warning, as `#` is not a
special character in C.

```
version.c:126:26: warning: unknown escape sequence '\#' [-Wunknown-escape-sequence]
    fputs("last_commit=" RUBY_LAST_COMMIT_TITLE, stdout);
                         ^~~~~~~~~~~~~~~~~~~~~~
revision.h:4:42: note: expanded from macro 'RUBY_LAST_COMMIT_TITLE'
                                         ^~
```
This commit is contained in:
Nobuyoshi Nakada 2019-07-07 18:54:17 +09:00
parent 68e5804022
commit 19a4c42d61
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -72,7 +72,8 @@ vcs = nil
"#define RUBY_BRANCH_NAME #{name.dump}"
end,
if title
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
title = title.dump.sub(/\\#/, '#')
"#define RUBY_LAST_COMMIT_TITLE #{title}"
end,
if modified
modified.utc.strftime('#define RUBY_RELEASE_DATETIME "%FT%TZ"')