blob: 92760b3d6bc7125edecad61a9989e0d6722448e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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)
cd $(git rev-parse --show-toplevel)
git archive -o "$ARCHIVE" master
cd - > /dev/null
cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }'
rm $ARCHIVE
|