Use relative path to the script, to please python3 on Windowsco-22.05.8-1
commit80e09853e5f60f292d00e57b5f6d5f2962e49147
authorMike Kaganski <mike.kaganski@collabora.com>
Mon, 14 Feb 2022 18:19:41 +0000 (14 19:19 +0100)
committerMike Kaganski <mike.kaganski@collabora.com>
Tue, 1 Nov 2022 21:03:57 +0000 (1 22:03 +0100)
tree6dab5ffd0f7b177f57dd564d8514344cb0a1640d
parent883991127988582d952abd29e0282ab5b5a916b8
Use relative path to the script, to please python3 on Windows

Running 'make vs-ide-integration' fails since some recent change
(no idea if that was a cygwin upgrade, or some change in core).
Using 'verbose=t', the last lines are

  make[1]: Leaving directory 'C:/lo/src/build'
  cd C:/lo/src/core &&  C:/lo/src/core/bin/gbuild-to-ide --ide vs --make C:/cygwin64/opt/lo/bin/make
  python3: can't open file '/cygdrive/c/lo/src/core/C:/lo/src/core/bin/gbuild-to-ide': [Errno 2] No such file or directory
  make: *** [Makefile:495: vs-ide-integration] Error 2

It looks like python3 gets called by shell with the script path as
given in the comand line, according to shebang in the script; but
cygwin's python3 can't parse Windows-style path to the script, and
treats it as relative path from cygwin's current directory.

Just use true relative path to the script, to avoid the problem. We
cd to $(SRCDIR) anyway.

Change-Id: Idc25cc74f7a23f0e5733f0d10044986888b43ba1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129930
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
(cherry picked from commit 18742c27af1c67d41831b5d2297746c299ace3d7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141925
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Makefile.in