mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 16:39:30 +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:
parent
010fe7bff2
commit
cafed8b7f3
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user