aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.bashrc_distr15
1 files changed, 15 insertions, 0 deletions
diff --git a/.bashrc_distr b/.bashrc_distr
new file mode 100644
index 0000000..10df5b2
--- /dev/null
+++ b/.bashrc_distr
@@ -0,0 +1,15 @@
+[ ! -z "${BASHRC_DISTR+x}" ] && return || readonly BASHRC_DISTR=1
+
+checksums_path='sha1sums.txt'
+
+update_checksums() {
+ sha1sum "$@" > "$checksums_path"
+}
+
+update_checksums_distr() {
+ update_checksums *.exe *.iso
+}
+
+verify_checksums() {
+ sha1sum --check "$checksums_path"
+}