diff options
Diffstat (limited to 'libre/iceweasel-l10n')
-rw-r--r-- | libre/iceweasel-l10n/check.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libre/iceweasel-l10n/check.sh b/libre/iceweasel-l10n/check.sh index 63ef703b1..ea37f4c4f 100644 --- a/libre/iceweasel-l10n/check.sh +++ b/libre/iceweasel-l10n/check.sh @@ -1,15 +1,18 @@ #!/bin/bash # helper script to check the local language list against upstream +# extract pkgbase from pkgbuild +pkgbase="$(bash -c "source PKGBUILD && echo \"\$pkgbase\"")" + # extract language list from pkgbuild bash -c "source PKGBUILD && printf '%s\n' \"\${_languages[@]}\" | cut -d ' ' -f1 | sort" \ - > iceweasel-l10n.local + > $pkgbase-l10n.local # load language list from upstream url="$(bash -c "source PKGBUILD && echo \"\$_url\"")/" curl -sL $url | \ - grep '\.xpi' | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev | cut -d'.' -f1 | sort\ - > iceweasel-l10n.remote + grep '\.xpi' | cut -d'"' -f2 | rev | cut -d'/' -f1 | cut -d'.' -f2 | rev | sort\ + > $pkgbase-l10n.remote -diff -rupN iceweasel-l10n.local iceweasel-l10n.remote -rm -f iceweasel-l10n.{local,remote} +diff -rupN $pkgbase-l10n.local $pkgbase-l10n.remote +rm -f $pkgbase-l10n.{local,remote} |