summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2016-04-01 20:58:35 -0400
committergorhill <rhill@raymondhill.net>2016-04-01 20:58:35 -0400
commitd286eff4ba69379e74aa5a715569195f615abb5a (patch)
tree08d70e6453ed4d6a0bba519adc050b2a92f9bb67 /tools
parentbaed91e11196c019bafe3b808a53a3d640cf147d (diff)
spin-off filter lists into their own dedicated project
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-checksums.sh31
1 files changed, 28 insertions, 3 deletions
diff --git a/tools/update-checksums.sh b/tools/update-checksums.sh
index 3a55891c..99ab55b1 100755
--- a/tools/update-checksums.sh
+++ b/tools/update-checksums.sh
@@ -3,10 +3,35 @@
# This script assumes a linux environment
echo "*** uBlock: generating checksums.txt file..."
+
truncate -s 0 assets/checksums.txt
-LIST="$(find assets/ublock assets/thirdparties -type f)"
-for ENTRY in $LIST; do
- echo `md5sum $ENTRY` >> assets/checksums.txt
+
+echo `md5sum assets/ublock/filter-lists.json` >> assets/checksums.txt
+
+filters=(
+ '../uAssets/filters/badware.txt'
+ '../uAssets/filters/experimental.txt'
+ '../uAssets/filters/filters.txt'
+ '../uAssets/filters/privacy.txt'
+ '../uAssets/filters/resources.txt'
+ '../uAssets/filters/unbreak.txt'
+)
+for repoPath in "${filters[@]}"; do
+ echo `md5sum $repoPath` | sed 's/\.\.\/uAssets\/filters/assets\/ublock/' >> assets/checksums.txt
+done
+
+thirdparties=(
+ '../uAssets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt'
+ '../uAssets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt'
+ '../uAssets/thirdparties/mirror1.malwaredomains.com/files/justdomains'
+ '../uAssets/thirdparties/pgl.yoyo.org/as/serverlist'
+ '../uAssets/thirdparties/publicsuffix.org/list/effective_tld_names.dat'
+ '../uAssets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt'
+)
+for repoPath in "${thirdparties[@]}"; do
+ echo `md5sum $repoPath` | sed 's/\.\.\/uAssets\/thirdparties/assets\/thirdparties/' >> assets/checksums.txt
done
echo "*** uBlock: checksums updated."
+
+git status assets/