aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup/AUR/getsha256sum.sh
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-zfs-partition-backup/AUR/getsha256sum.sh')
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/getsha256sum.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
new file mode 100755
index 0000000..92760b3
--- /dev/null
+++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
@@ -0,0 +1,21 @@
1#!/usr/bin/bash
2# source PKGBUILD
3# function allsha() {
4# for i in $source
5# do
6# printf "'%s' " "$(wget -q -O- "$i" | sha256sum | awk '/-$/{ print $1 }')"
7# done
8# }
9#
10# allsha | tee /tmp/output.txt
11
12
13ARCHIVE=$(mktemp --suffix=.tar.bz2)
14
15cd $(git rev-parse --show-toplevel)
16git archive -o "$ARCHIVE" master
17cd - > /dev/null
18
19cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }'
20rm $ARCHIVE
21
..