mirror of
https://github.com/linux-sunxi/sunxi-tools.git
synced 2024-11-27 03:44:22 +08:00
19 lines
514 B
Bash
Executable File
19 lines
514 B
Bash
Executable File
#
|
|
# This script auto-updates a VERSION string definition.
|
|
# It outputs informational messages to stderr, while the actual
|
|
# output (on stdout) can easily be redirected to a file.
|
|
#
|
|
|
|
LATEST_RELEASE="v1.4.2"
|
|
|
|
if VER=`git describe --tags --dirty --always`; then
|
|
echo "Setting version information: ${VER}" >&2
|
|
else
|
|
VER=${LATEST_RELEASE}
|
|
echo "Unable to determine current version (using \"${VER}\" as fallback)" >&2
|
|
fi
|
|
echo >&2
|
|
|
|
echo "/* Auto-generated information. DO NOT EDIT */"
|
|
echo "#define VERSION \"${VER}\""
|