mirror of https://github.com/odrling/Aegisub
make_pot.sh: Check presence of xmlstarlet and jq
This commit is contained in:
parent
c3a4a9122c
commit
7ea2c09afa
|
@ -46,9 +46,11 @@ do
|
||||||
| maybe_append
|
| maybe_append
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in 'name' 'summary' 'p' 'li' 'caption'; do
|
if which xmlstarlet >/dev/null 2>&1 && which jq >/dev/null 2>&1; then
|
||||||
|
for i in 'name' 'summary' 'p' 'li' 'caption'; do
|
||||||
xmlstarlet sel -t -v "//_$i" ../packages/desktop/aegisub.appdata.xml.template.in | jq -R .
|
xmlstarlet sel -t -v "//_$i" ../packages/desktop/aegisub.appdata.xml.template.in | jq -R .
|
||||||
done | nl -v0 -w1 -s'|' | sed -re 's/^/aegisub.appdata.xml|/' | maybe_append
|
done | nl -v0 -w1 -s'|' | sed -re 's/^/aegisub.appdata.xml|/' | maybe_append
|
||||||
|
fi
|
||||||
|
|
||||||
grep '^_[A-Za-z0-9]*=.*' ../packages/win_installer/fragment_strings.iss.in | while read line
|
grep '^_[A-Za-z0-9]*=.*' ../packages/win_installer/fragment_strings.iss.in | while read line
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue