diff options
author | Karel Kočí <cynerd@email.cz> | 2021-04-09 11:03:57 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2021-04-09 11:03:57 +0200 |
commit | 09091a0b3bf046451ee0d6c7024f175b1f5941af (patch) | |
tree | 35060c57cbf37eb3fb670552254e7bf32d04874f | |
parent | 6eaff404dc35873cf6ecf61731d3ee799668c806 (diff) | |
download | alpine-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-x | pkgchecksum.sh | 11 |
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 |