From 006ffea7c5cb52dcc4f2c18d9aa297681f6b52c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 8 Apr 2023 03:16:28 +0200 Subject: [PATCH] replace constants in app.php instead of main.php --- scripts/update-version.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/update-version.sh b/scripts/update-version.sh index de564b7..817579d 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh @@ -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