fix clash between php and python when running scripts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d6ee42566
commit
1d9f63c873
2 changed files with 7 additions and 7 deletions
|
|
@ -294,15 +294,15 @@ python_static_cpp: $(SRCS)
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
ifeq (,$(PY3))
|
ifeq (,$(PY3))
|
||||||
SCRIPT = runme.py
|
PYSCRIPT = runme.py
|
||||||
else
|
else
|
||||||
SCRIPT = runme3.py
|
PYSCRIPT = runme3.py
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PY2TO3 = 2to3 `2to3 -l | grep -v -E "Available|import$$" | awk '{print "-f "$$0}'`
|
PY2TO3 = 2to3 `2to3 -l | grep -v -E "Available|import$$" | awk '{print "-f "$$0}'`
|
||||||
|
|
||||||
python_run: $(SCRIPT)
|
python_run: $(PYSCRIPT)
|
||||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(SCRIPT) >/dev/null
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT) >/dev/null
|
||||||
|
|
||||||
runme3.py: runme.py
|
runme3.py: runme.py
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
@ -769,10 +769,10 @@ php4_cpp: $(SRCS)
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
PHP4=@PHP4@
|
PHP4=@PHP4@
|
||||||
SCRIPT ?= runme.php4
|
PHP4SCRIPT ?= runme.php4
|
||||||
|
|
||||||
php4_run:
|
php4_run:
|
||||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(SCRIPT)
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(PHP4SCRIPT)
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# Cleaning the PHP4 examples
|
# Cleaning the PHP4 examples
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ missingtests: missingcpptests missingctests
|
||||||
# a file is found which has _runme.php4 appended after the testcase name.
|
# a file is found which has _runme.php4 appended after the testcase name.
|
||||||
run_testcase = \
|
run_testcase = \
|
||||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile SCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php4_run;) \
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHP4SCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php4_run;) \
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Clean: remove the generated .php file
|
# Clean: remove the generated .php file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue