summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-04-09 11:03:57 +0200
committerKarel Kočí <cynerd@email.cz>2021-04-09 11:03:57 +0200
commit09091a0b3bf046451ee0d6c7024f175b1f5941af (patch)
tree35060c57cbf37eb3fb670552254e7bf32d04874f
parent6eaff404dc35873cf6ecf61731d3ee799668c806 (diff)
downloadalpine-personal-pkgs-09091a0b3bf046451ee0d6c7024f175b1f5941af.tar.gz
alpine-personal-pkgs-09091a0b3bf046451ee0d6c7024f175b1f5941af.tar.bz2
alpine-personal-pkgs-09091a0b3bf046451ee0d6c7024f175b1f5941af.zip
pkgchecksum.sh: add script to quicky generate checksum
-rwxr-xr-xpkgchecksum.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgchecksum.sh b/pkgchecksum.sh
new file mode 100755
index 0000000..0900656
--- /dev/null
+++ b/pkgchecksum.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Quick script to recalculate checksum using docker image.
+
+if ! docker inspect --type=image alpine-abuild >/dev/null 2>&1; then
+ docker build -t alpine-abuild - <"${0%/*}/.Dockerfile"
+fi
+
+docker run -i --rm -v "$PWD:/pkg" alpine-abuild /bin/sh -s <<EOF
+ cd /pkg
+ abuild checksum
+EOF