2023-04-08 00:42:55 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
ROOT_DIR=$(dirname $(readlink -f "$0"))/..
|
|
|
|
|
|
|
|
. ${ROOT_DIR}/.env
|
|
|
|
|
|
|
|
cd ${ROOT_DIR}
|
|
|
|
|
|
|
|
echo "Updating version info..."
|
|
|
|
|
|
|
|
VERSION=$(git describe --tags --always --match "Release_*" HEAD)
|
|
|
|
REVISION=$(git rev-parse --short HEAD)
|
|
|
|
REVISION_DATE=$(git show -s --format=%aI HEAD)
|
|
|
|
|
2023-04-08 03:16:28 +02:00
|
|
|
sed -i -E "s/const VERSION = '(.*)';/const VERSION = '${VERSION}';/" app.php
|
|
|
|
sed -i -E "s/const REVISION = '(.*)';/const REVISION = '${REVISION}';/" app.php
|
|
|
|
sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" app.php
|