From e70cba40c507cf31c4d3ea3539746c5da04a1e5b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 11 Sep 2022 13:34:25 +0200 Subject: update-po{,t}.sh: Omit ../ at beginning of file names in .pot file. --- update-po.sh | 1 + update-pot.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/update-po.sh b/update-po.sh index dff6f3a..b066610 100755 --- a/update-po.sh +++ b/update-po.sh @@ -32,6 +32,7 @@ cat LINGUAS | while read lingua; do -e 's/\.ini\.in\.h:/.ini.in:/g' \ -e 's/\.xml\.h:/.xml:/g' \ -e 's/\.ini\.h:/.ini:/g' \ + -e 's@#: \.\./@#: @g' \ -i ${lingua}.po done diff --git a/update-pot.sh b/update-pot.sh index 5216a03..8a27234 100755 --- a/update-pot.sh +++ b/update-pot.sh @@ -35,10 +35,9 @@ rm data/org.ayatana.indicator.datetime.gschema.xml # And undo the renamings again. cd src/ && for file in *.cpp *.c; do sed -e "s/ T _/ T_/g" -i $file; done && cd - 1>/dev/null - - sed -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' \ -i po/${GETTEXT_DOMAIN}.pot -- cgit v1.2.3