summaryrefslogtreecommitdiff
path: root/distrib/miniroot/makehash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/miniroot/makehash.sh')
-rw-r--r--distrib/miniroot/makehash.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/distrib/miniroot/makehash.sh b/distrib/miniroot/makehash.sh
new file mode 100644
index 00000000000..f5de00263cb
--- /dev/null
+++ b/distrib/miniroot/makehash.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+dir=$1
+rev=$2
+
+if [ $# -lt 3 ]; then
+ echo makehash.sh: No RELEASEDIR -- skipping hash storage
+ exit 0
+fi
+
+rel=$3
+
+#echo makehash args $dir $rev $rel
+
+cat $rel/bsd | sum -a sha256 > $dir/bsd
+#ls -alF $rel/bsd
+#echo bsd `cat $dir/bsd`
+
+if [ -f $rel/bsd.mp ]; then
+ cat $rel/bsd.mp | sum -a sha256 > $dir/bsd.mp
+ #ls -alF $rel/bsd.mp
+ #echo bsd.mp `cat $dir/bsd.mp`
+fi
+
+if [ -f $rel/bsd.rd ]; then
+ cat $rel/bsd.rd | sum -a sha256 > $dir/bsd.rd
+ #ls -alF $rel/bsd.rd
+ #echo bsd.rd `cat $dir/bsd.rd`
+fi
+
+for i in base comp etc misc man game ; do
+ cat $rel/$i$rev.tgz | sum -a sha256 > $dir/$i$rev.tgz
+ #ls -alF $rel/$i$rev.tgz
+ #echo $i$rev.tgz `cat $dir/$i$rev.tgz`
+done