Files
ipatool/tools/version.sh
T
2022-12-05 18:46:02 +01:00

13 lines
230 B
Bash
Executable File

#!/bin/sh -e
VERSION=$(git describe --abbrev=0 --tags | cut -c 2-)
BASEDIR=$(dirname "$0")
cat <<EOF >"$BASEDIR/../cmd/version.go"
package cmd
// Automatically generated
const version = "$VERSION"
EOF
echo "Version ${VERSION}"