mirror of
https://github.com/majd/ipatool
synced 2026-11-26 17:27:52 +08:00
13 lines
230 B
Bash
Executable File
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}" |