Modify make_pot to use xgettext instead of grep

To match the change in af5060d6a3
This commit is contained in:
wangqr 2019-09-25 17:08:57 -04:00
parent 0fbcaea871
commit 0e29c8d0e4

View file

@ -39,12 +39,7 @@ find ../automation -name '*.lua' \
| sed 's/\\/\\\\\\\\/g' \
| maybe_append
for i in 'Name' 'GenericName' 'Comment'
do
grep ^_$i -n ../packages/desktop/aegisub.desktop.template.in \
| sed 's/\([0-9]\+\):[^=]\+=\(.*\)$/aegisub.desktop|\1|"\2"/' \
| maybe_append
done
xgettext ../packages/desktop/aegisub.desktop.template --language=Desktop --join-existing -o aegisub.pot
if which xmlstarlet >/dev/null 2>&1 && which jq >/dev/null 2>&1; then
for i in 'name' 'summary' 'p' 'li' 'caption'; do