summaryrefslogtreecommitdiff
path: root/www/lynx/patches/patch-af
blob: 5e1eeff81bfb9e4278726cf1352cef95cb191e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-af,v 1.7 2014/02/20 10:07:35 wiz Exp $

--- po/makefile.inn.orig	2010-10-04 09:44:56.000000000 +0000
+++ po/makefile.inn
@@ -82,6 +82,11 @@ INSTOBJ		= $(NLS_TEXTDOMAIN)$(INSTOBJEXT
 	$(MSGFMT) -o $@ $<
 
 .po.gmo:
+	@if [ `$(GMSGFMT) --version | head -1 | cut -d . -f 2` -lt 11 ]; then \
+		mv $< $<.bak; \
+		sed '/^msgstr/s/\([^\\]\)\(\\[^[:print:]]\)/\1\\\2/g' \
+			<$<.bak >$<; \
+	fi
 	file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
 	  && rm -f $$file && $(GMSGFMT) -o $$file $<