blob: f90c850074f47cd7624814dd94d8d68b31c3dc51 (
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
|
#!/usr/bin/bash
# source PKGBUILD
# function allsha() {
# for i in $source
# do
# printf "'%s' " "$(wget -q -O- "$i" | sha256sum | awk '/-$/{ print $1 }')"
# done
# }
#
# allsha | tee /tmp/output.txt
ARCHIVE=$(mktemp --suffix=.tar.bz2)
echo $ARCHIVE
cd $(git rev-parse --show-toplevel)
git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" HEAD
cd - > /dev/null
echo "# Archive content"
tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}"
echo
echo
echo "# sha256sum"
cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }'
rm $ARCHIVE
|