diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2017-11-29 07:16:15 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2017-11-29 07:16:49 +0100 |
commit | fc306fcb03eb7314f35506cc5f1020d4243736f5 (patch) | |
tree | b728860fd6e327234634a64dd37b139feb238e85 /libre/iceweasel-l10n | |
parent | 396e12602cffb6e51188db908a9671e3a0312649 (diff) | |
download | abslibre-fc306fcb03eb7314f35506cc5f1020d4243736f5.tar.gz abslibre-fc306fcb03eb7314f35506cc5f1020d4243736f5.tar.bz2 abslibre-fc306fcb03eb7314f35506cc5f1020d4243736f5.zip |
consolidated langpack list checkers for ice* packages
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} |