Merge pull request 'replace constants in app.php instead of main.php' (!4) from fix-update-version-script into master
All checks were successful
rvr-nextgen/pipeline/head This commit looks good

Reviewed-on: #4
This commit is contained in:
Bence Pőcze 2023-04-08 03:18:49 +02:00 committed by Gitea
commit 862daea29c
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6

View File

@ -12,6 +12,6 @@ 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}';/" main.php
sed -i -E "s/const REVISION = '(.*)';/const REVISION = '${REVISION}';/" main.php
sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" main.php
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