From 99a3ea4ec0ed85ed073251992598ec688189cfb8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 14 Sep 2022 08:39:01 +0200 Subject: update-po{,t}.sh: Also catch multi-file source file references. --- update-po.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'update-po.sh') diff --git a/update-po.sh b/update-po.sh index b066610..b00f000 100755 --- a/update-po.sh +++ b/update-po.sh @@ -28,11 +28,13 @@ cat LINGUAS | while read lingua; do intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) fi - sed -e 's/\.xml\.in\.h:/.xml.in:/g' \ + sed -E \ + -e 's/\.xml\.in\.h:/.xml.in:/g' \ -e 's/\.ini\.in\.h:/.ini.in:/g' \ -e 's/\.xml\.h:/.xml:/g' \ -e 's/\.ini\.h:/.ini:/g' \ - -e 's@#: \.\./@#: @g' \ + -e 's@^#: \.\./@#: @g' \ + -e 's@(:[0-9]+) \.\./@\1 @g' \ -i ${lingua}.po done -- cgit v1.2.3