2023-06-27 16:50:42 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
2023-06-28 20:59:16 +02:00
|
|
|
if [[ -n "${1}" ]]; then
|
|
|
|
WORKSPACE_PATH="$1"
|
|
|
|
else
|
|
|
|
WORKSPACE_PATH="/src/dash"
|
|
|
|
fi
|
2023-06-27 16:50:42 +02:00
|
|
|
|
2023-06-28 20:59:16 +02:00
|
|
|
if [[ ! -d "$WORKSPACE_PATH" ]]; then
|
|
|
|
echo "$0: $WORKSPACE_PATH is not a valid directory, exiting!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$WORKSPACE_PATH"
|
|
|
|
COMMIT_ID="$(git rev-parse --short=12 HEAD)"
|
|
|
|
|
|
|
|
printf "\nBinaries:\n\n"
|
2023-06-27 16:50:42 +02:00
|
|
|
( \
|
2023-06-28 20:59:16 +02:00
|
|
|
SRC_PATH_PREFIX="guix-build-${COMMIT_ID}/distsrc-" && \
|
2023-06-27 16:50:42 +02:00
|
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/dash{d,-cli,-tx,-wallet}{,.exe} && \
|
|
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/qt/dash-qt{,.exe} && \
|
|
|
|
sha256sum ${SRC_PATH_PREFIX}*/src/test/test_dash{,.exe} \
|
|
|
|
) | sort -k 2
|
|
|
|
|
2023-06-28 20:59:16 +02:00
|
|
|
printf "\nArchives:\n\n"
|
|
|
|
find "guix-build-${COMMIT_ID}/output" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2
|