mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
some Unix-like operating systems, namely Alpine, don't come with bash preinstalled. scripts in the lib-src/ directory were left untouched. Signed-off-by: Sol Fisher Romanoff <sol@solfisher.com>
47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
#!/bin/sh
|
|
# Run this script with /locale/script/ as the current directory
|
|
set -o errexit
|
|
|
|
DIRNAME=$(dirname "$0")
|
|
|
|
echo ";; Recreating tenacity.pot using .h, .cpp and .mm files"
|
|
for path in "$DIRNAME/../modules/mod-*" "$DIRNAME/../libraries/lib-*" "$DIRNAME/../include" "$DIRNAME/../src" ; do
|
|
find "$path" -name \*.h -o -name \*.cpp -o -name \*.mm
|
|
done | LANG=c sort | \
|
|
sed -E 's/\.\.\///g' |\
|
|
xargs xgettext \
|
|
--no-wrap \
|
|
--default-domain=tenacity \
|
|
--directory="$DIRNAME/../.." \
|
|
--keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword=XXC:1,2c --keyword=XP:1,2 --keyword=XPC:1,2,4c \
|
|
--add-comments=" i18n" \
|
|
--add-location=file \
|
|
--copyright-holder='Tenacity Contributors' \
|
|
--package-name="tenacity" \
|
|
--package-version='3.0.4' \
|
|
--msgid-bugs-address="emabrey@tenacityaudio.org" \
|
|
--add-location=file -L C -o "$DIRNAME/../tenacity.pot"
|
|
|
|
echo ";; Adding nyquist files to tenacity.pot"
|
|
for path in "$DIRNAME/../../plug-ins/"* ; do find "$path" -name \*.ny -not -name rms.ny; done | LANG=c sort | \
|
|
sed -E 's/\.\.\///g' |\
|
|
xargs xgettext \
|
|
--no-wrap \
|
|
--default-domain=tenacity \
|
|
--directory="$DIRNAME/../.." \
|
|
--keyword=_ --keyword=_C:1,2c --keyword=ngettext:1,2 --keyword=ngettextc:1,2,4c \
|
|
--add-comments=" i18n" \
|
|
--add-location=file \
|
|
--copyright-holder='Tenacity Contributors' \
|
|
--package-name="tenacity" \
|
|
--package-version='3.0.4' \
|
|
--msgid-bugs-address="emabrey@tenacityaudio.org" \
|
|
--add-location=file -L Lisp -j -o "$DIRNAME/../tenacity.pot"
|
|
|
|
echo ""
|
|
echo ";; POT file generated"
|
|
echo ""
|
|
|
|
head -n 11 "$DIRNAME/../tenacity.pot" | tail -n 3
|
|
wc -l "$DIRNAME/../tenacity.pot"
|