diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 13:38:30 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-09-05 13:38:30 +0200 |
commit | 4e646dac54541c70532374463767428e3f22cbd2 (patch) | |
tree | 9d1e46c3dbfab72f9f814ef2bda7edbf3efcb25f | |
parent | e9534394c942cde1d043ce45f88f617b2018224f (diff) | |
download | ayatana-indicator-printers-4e646dac54541c70532374463767428e3f22cbd2.tar.gz ayatana-indicator-printers-4e646dac54541c70532374463767428e3f22cbd2.tar.bz2 ayatana-indicator-printers-4e646dac54541c70532374463767428e3f22cbd2.zip |
update-po{,t}.sh: White-space changes (use same script as on other ayatana-indicator-* projects).
-rwxr-xr-x | update-po.sh | 22 | ||||
-rwxr-xr-x | update-pot.sh | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/update-po.sh b/update-po.sh index b0470a0..2043358 100755 --- a/update-po.sh +++ b/update-po.sh @@ -22,17 +22,17 @@ cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ cd po/ cat LINGUAS | while read lingua; do - if [ ! -e ${lingua}.po ]; then - msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po - else - intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) - fi - - 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' \ - -i ${lingua}.po + if [ ! -e ${lingua}.po ]; then + msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po + else + intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) + fi + + 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' \ + -i ${lingua}.po done cd - 1>/dev/null diff --git a/update-pot.sh b/update-pot.sh index 610f87d..43a8d06 100755 --- a/update-pot.sh +++ b/update-pot.sh @@ -18,8 +18,8 @@ GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot && 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' \ +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' \ -i po/${GETTEXT_DOMAIN}.pot |