From 09091a0b3bf046451ee0d6c7024f175b1f5941af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 9 Apr 2021 11:03:57 +0200 Subject: pkgchecksum.sh: add script to quicky generate checksum --- pkgchecksum.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 pkgchecksum.sh 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 <