2017-08-06 22:56:38 +02:00
|
|
|
|
|
|
|
|
# This script is sourced to define the main version parameters
|
|
|
|
|
|
|
|
|
|
# The main version
|
2025-08-05 23:15:57 +02:00
|
|
|
KLAYOUT_VERSION="0.30.3"
|
2017-08-06 22:56:38 +02:00
|
|
|
|
2019-11-12 00:04:40 +01:00
|
|
|
# The version used for PyPI (don't use variables here!)
|
2025-08-05 23:15:57 +02:00
|
|
|
KLAYOUT_PYPI_VERSION="0.30.3"
|
2019-11-12 00:04:40 +01:00
|
|
|
|
2017-08-06 22:56:38 +02:00
|
|
|
# The build date
|
2017-11-26 22:12:55 +01:00
|
|
|
KLAYOUT_VERSION_DATE=$(date "+%Y-%m-%d")
|
2017-08-06 22:56:38 +02:00
|
|
|
|
|
|
|
|
# The short SHA hash of the commit
|
2017-11-26 22:12:55 +01:00
|
|
|
KLAYOUT_VERSION_REV=$(git rev-parse --short HEAD 2>/dev/null)
|
2017-08-06 22:56:38 +02:00
|
|
|
|
2017-11-26 22:12:55 +01:00
|
|
|
if [ "$KLAYOUT_VERSION_REV" = "" ]; then
|
|
|
|
|
KLAYOUT_VERSION_REV="LatestSourcePackage"
|
|
|
|
|
fi
|