Skip to content

Commit ff57bec

Browse files
committed
cd into src dir before invoking git
fixes #267
1 parent 9be9afc commit ff57bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/linuxdeployqt/linuxdeployqt.pro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DEFINES -= QT_USE_QSTRINGBUILDER #leads to compile errors if not disabled
2020
# don't break the quotes -- at the moment, the shell commands are injected into the Makefile to have them run on every
2121
# build and not during configure time
2222

23-
DEFINES += LINUXDEPLOYQT_GIT_COMMIT="'\"$(shell git rev-parse --short HEAD)\"'"
23+
DEFINES += LINUXDEPLOYQT_GIT_COMMIT="'\"$(shell cd $$PWD && git rev-parse --short HEAD)\"'"
2424

2525
DEFINES += BUILD_DATE="'\"$(shell env LC_ALL=C date -u '+%Y-%m-%d %H:%M:%S %Z')\"'"
2626

@@ -34,5 +34,5 @@ isEmpty(_BUILD_NUMBER) {
3434
DEFINES += BUILD_NUMBER="'\"$$_BUILD_NUMBER\"'"
3535
}
3636

37-
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell git describe --tags $(shell git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'"
38-
DEFINES += EXCLUDELIST=\""$$system($$_PRO_FILE_PWD_/../excludelist.sh)"\"
37+
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell cd $$PWD && git describe --tags $(shell cd $$PWD && git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'"
38+
DEFINES += EXCLUDELIST=\""$$system($$_PRO_FILE_PWD_/../excludelist.sh)"\"

0 commit comments

Comments
 (0)