summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-12-16 11:25:40 -0500
committergorhill <rhill@raymondhill.net>2015-12-16 11:25:40 -0500
commit57b037be18f978fcd0594a79447dc3766358ffeb (patch)
tree33810f9f1d34d8f1b7007bb8c54958ac24eeaae9 /tools
parent5a47c95b2c0846d96be0a0f0f3d00ba5d04ab70c (diff)
moving update checksums script to tools
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-checksums.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/update-checksums.sh b/tools/update-checksums.sh
new file mode 100755
index 00000000..79269b63
--- /dev/null
+++ b/tools/update-checksums.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# 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
+done
+
+echo "*** uBlock: checksums updated."