aboutsummaryrefslogtreecommitdiff
path: root/tools/cpm-hash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cpm-hash.sh')
-rwxr-xr-xtools/cpm-hash.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/cpm-hash.sh b/tools/cpm-hash.sh
new file mode 100755
index 0000000000..9fde15ff7d
--- /dev/null
+++ b/tools/cpm-hash.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in $@; do
+ SUM=`wget -q $i -O - | sha512sum`
+ echo "$i"
+ echo "URL_HASH SHA512=$SUM" | cut -d " " -f1-2
+done