Pőcze Bence
006ffea7c5
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
18 lines
530 B
Bash
Executable File
18 lines
530 B
Bash
Executable File
#!/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)
|
|
|
|
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
|