From dc9fd4538267a3f793c9eee27c8bb118e784b778 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 30 Jul 2017 17:36:17 -0400 Subject: sd_messages: Update messages.go.gen to work with systemd 233 --- sd_messages/messages.go.gen | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sd_messages') diff --git a/sd_messages/messages.go.gen b/sd_messages/messages.go.gen index 3314df3..d4e200c 100755 --- a/sd_messages/messages.go.gen +++ b/sd_messages/messages.go.gen @@ -22,6 +22,7 @@ 1aimport "git.lukeshu.com/go/libsystemd/sd_id128" 1avar ( /^#define\s+SD_MESSAGE_/ { + /\\$/{N;s/\\\n//g;} s/^#define\s+SD_MESSAGE_(\S*)/\1 =/ @@ -29,6 +30,8 @@ s/,/,0x/g s/\)/}/ + /SD_ID128_MAKE_STR/d + s/(^|_)([A-Z])([A-Z]*)/\U\2\L\3/g p -- cgit v1.2.3-54-g00ecf