1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Let users update audacity.pot only (#686)

* Exit the update_po_files.sh in case of errors

* Let users update audacity.pot only

This can be done by calling
AUDACITY_ONLY_POT=y ./update_po_files.sh
This commit is contained in:
Michele Locati 2020-11-01 19:56:39 +01:00 committed by GitHub
parent 3978e8c9ee
commit 7aff2e3e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -o errexit
echo ";; Recreating audacity.pot using .h, .cpp and .mm files" echo ";; Recreating audacity.pot using .h, .cpp and .mm files"
for path in ../modules/mod-script* ../modules/mod-nyq* ../include ../src ; do find $path -name \*.h -o -name \*.cpp -o -name \*.mm ; done | LANG=c sort | \ for path in ../modules/mod-script* ../modules/mod-nyq* ../include ../src ; do find $path -name \*.h -o -name \*.cpp -o -name \*.mm ; done | LANG=c sort | \
sed -E 's/\.\.\///g' |\ sed -E 's/\.\.\///g' |\
@ -27,6 +28,9 @@ xargs xgettext \
--package-version='2.4.2' \ --package-version='2.4.2' \
--msgid-bugs-address="audacity-translation@lists.sourceforge.net" \ --msgid-bugs-address="audacity-translation@lists.sourceforge.net" \
--add-location=file -L Lisp -j -o audacity.pot --add-location=file -L Lisp -j -o audacity.pot
if test "${AUDACITY_ONLY_POT:-}" = 'y'; then
return 0
fi
echo ";; Updating the .po files - Updating Project-Id-Version" echo ";; Updating the .po files - Updating Project-Id-Version"
for i in *.po; do for i in *.po; do
sed -i '/^"Project-Id-Version:/c\"Project-Id-Version: audacity 2.4.2\\n"' $i sed -i '/^"Project-Id-Version:/c\"Project-Id-Version: audacity 2.4.2\\n"' $i