diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 07:58:05 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 07:58:05 -0700 |
commit | b21a6f21ce6da15adab4444e980887d57db8c007 (patch) | |
tree | b4549c92e6d622964deca8f3b77ef52b36032ec8 | |
parent | 50e07d4112076df90418a2abde2441b2501289e5 (diff) | |
download | txr-b21a6f21ce6da15adab4444e980887d57db8c007.tar.gz txr-b21a6f21ce6da15adab4444e980887d57db8c007.tar.bz2 txr-b21a6f21ce6da15adab4444e980887d57db8c007.zip |
install-tests: use relative path in run.sh.
* Makefile (install-tests): In the generated run.sh, let's
allow flexibility in the installation location of the tests by
avoiding a cd to an absolute path where the tests are assumed
to be installed. Let's assume that they are installed
relative to where the run.sh script is, and cd there.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -530,7 +530,7 @@ install-tests: $(call SH, \ (echo "#!/bin/sh" ; \ echo "set -ex" ; \ - echo "cd $(datadir)" ; \ + echo 'cd "$$(dirname "$$(dirname "$$0")")"' ; \ make -s -n tests VERBOSE=y TXR=$(bindir)/txr) \ > run.sh) $(call INSTALL,0755,run.sh,$(DESTDIR)$(datadir)/tests) |