summaryrefslogtreecommitdiff
path: root/pkgchecksum.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgchecksum.sh')
-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