hack: rename scripts to hack

This commit is contained in:
Alex Zenla
2024-03-07 16:40:06 +00:00
parent 182401371b
commit e3a70e5595
27 changed files with 79 additions and 70 deletions

15
hack/dist/version.sh vendored Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
set -e
# shellcheck source-path=SCRIPTDIR source=common.sh
. "$(dirname "${0}")/common.sh"
cd "${KRATA_DIR}"
KRATA_VERSION="$(grep -A1 -F '[workspace.package]' Cargo.toml | grep 'version' | awk '{print $3}' | sed 's/"//g')"
if [ -z "${KRATA_VERSION}" ]
then
echo "ERROR: failed to determine krata version" > /dev/stderr
exit 1
fi
echo "${KRATA_VERSION}"