From ae5d181b854d3ccb373b6bc01b4869e44ff4d87a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:37:15 +0200 Subject: Adding upstream version 2.9.0dev.12. Signed-off-by: Daniel Baumann --- scripts/fixtext.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/fixtext.sh (limited to 'scripts/fixtext.sh') diff --git a/scripts/fixtext.sh b/scripts/fixtext.sh new file mode 100755 index 0000000..a6f53b6 --- /dev/null +++ b/scripts/fixtext.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# $LynxId: fixtext.sh,v 1.2 2021/01/07 00:21:03 tom Exp $ + +# xgettext only processes literal strings. Someone with a poor sense of humor +# decided to ignore strings in preprocessor lines. So we construct a fake +# ".c" file with the definitions turned into literals. + +sed -e 's/")/");/' \ + -e 's/^#define[ ]*\([^ ]*\)[ ]*gettext/char *\1 = gettext/' \ + -e 's,^#define[ ]*\([^ ]*\)[ ]*\\,/* #define \1 */char *\1 = \\,' \ + "$@" -- cgit v1.2.3