mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 09:48:56 +00:00
setup: escape any double-quote chars in the PATH before using the PATH to find and invoke trial
This commit is contained in:
parent
0d5c8468e9
commit
960a648d5b
11
Makefile
11
Makefile
@ -55,6 +55,17 @@ else
|
||||
PP=PYTHONPATH="$(SUPPORTLIB)"
|
||||
endif
|
||||
|
||||
# Escape any quote chars in PATH. Note that if they are already escaped then
|
||||
# the following subst will screw it up and weird parsing errors will
|
||||
# eventually result.
|
||||
PATH := $(subst ",\",${PATH})
|
||||
|
||||
TRIALCMD = $(shell PATH="$(PATH):${PWD}/support/bin" $(PP) $(PYTHON) misc/find_trial.py)
|
||||
ifeq ($(TRIALCMD),)
|
||||
$(error Couldn't find trial. It comes with twisted.)
|
||||
endif
|
||||
TRIAL=PATH="$(PATH):${PWD}/support/bin" PYTHONUNBUFFERED=1 $(TRIALCMD) --rterrors $(REACTOROPT)
|
||||
|
||||
TRIALCMD = $(shell PATH="${PATH}:${PWD}/support/bin" $(PP) $(PYTHON) misc/find_trial.py)
|
||||
TRIAL=PATH="${PATH}:${PWD}/support/bin" PYTHONUNBUFFERED=1 $(TRIALCMD) --rterrors $(REACTOROPT) $(TRIALOPT)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user