diff options
Diffstat (limited to 'libre/icedove-l10n/check.sh')
-rw-r--r-- | libre/icedove-l10n/check.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libre/icedove-l10n/check.sh b/libre/icedove-l10n/check.sh new file mode 100644 index 000000000..4c92ca12e --- /dev/null +++ b/libre/icedove-l10n/check.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# helper script to check the local language list against upstream + +# extract language list from pkgbuild +bash -c "source PKGBUILD && printf '%s\n' \"\${_languages[@]}\" | cut -d ' ' -f1 | sort" \ + > icedove-l10n.local + +# load language list from upstream +url="$(bash -c "source PKGBUILD && echo \"\$_pkgurl\"")/" +curl -sL $url | \ + grep '\.xpi' | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev | cut -d'.' -f1 | sort\ + > icedove-l10n.remote + +diff -rupN icedove-l10n.local icedove-l10n.remote +rm -f icedove-l10n.{local,remote} |