summaryrefslogtreecommitdiff
path: root/distrib/miniroot/makehash.sh
blob: 9e6ff79fbb990fc2855f66a0d5536b3656cde9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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

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