1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Fix sed commands in update_po_files.sh for macOS ...

... BSD version of sed doesn't use all the same options.

So the script was misinterpreting .po file names as sed commands and not doing
what was intended, and set -o errexit caused early abort of the script.
This commit is contained in:
Paul Licameli 2021-05-21 21:28:32 -04:00
parent 010fe7bff2
commit cafed8b7f3

View File

@ -33,14 +33,15 @@ if test "${AUDACITY_ONLY_POT:-}" = 'y'; then
fi
echo ";; Updating the .po files - Updating Project-Id-Version"
for i in *.po; do
sed -i '/^"Project-Id-Version:/c\"Project-Id-Version: audacity 3.0.3\\n"' $i
sed -e '/^"Project-Id-Version:/c\
"Project-Id-Version: audacity 3.0.3\\n"' $i > TEMP; mv TEMP $i
done
echo ";; Updating the .po files"
sed 's/.*/echo "msgmerge --lang=& &.po audacity.pot -o &.po";\
msgmerge --lang=& &.po audacity.pot -o &.po;/g' LINGUAS | bash
echo ";; Removing '#~|' (which confuse Windows version of msgcat)"
for i in *.po; do
sed -i '/^#~|/d' $i
sed '/^#~|/d' $i > TEMP; mv TEMP $i
done
echo ""
echo ";;Translation updated"