aboutsummaryrefslogtreecommitdiffstats
path: root/assets/update-checksums.sh
diff options
context:
space:
mode:
authorRaymond Hill <rhill@raymondhill.net>2014-11-14 08:59:16 -0500
committerRaymond Hill <rhill@raymondhill.net>2014-11-14 08:59:16 -0500
commita515c99cbffc32cb752438757cf25c33b2392152 (patch)
tree5a2a2fea9277a7ef20b7ee40cb0b13eb681e37ee /assets/update-checksums.sh
parent54a91b937430665db7a8b4fbf7e0454003975b23 (diff)
downloaduBlock-a515c99cbffc32cb752438757cf25c33b2392152.zip
uBlock-a515c99cbffc32cb752438757cf25c33b2392152.tar.gz
uBlock-a515c99cbffc32cb752438757cf25c33b2392152.tar.bz2
we need this for installed clients until uAssets
Diffstat (limited to 'assets/update-checksums.sh')
-rwxr-xr-xassets/update-checksums.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/update-checksums.sh b/assets/update-checksums.sh
new file mode 100755
index 0000000..b42e291
--- /dev/null
+++ b/assets/update-checksums.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# This script assumes a linux environment
+
+echo "*** uBlock: generating checksums.txt file..."
+pushd ..
+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
+done
+popd
+
+echo "*** uBlock: checksums updated."
+