mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
py-run.mk, python-tools.sh: Re-add files necessary for jw-client-devops-web
jw-client-devops-web needs py-run.mk and python-tools.sh, add them. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1a0eb42191
commit
d7d4ffa640
2 changed files with 105 additions and 0 deletions
24
make/py-run.mk
Normal file
24
make/py-run.mk
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
include $(JWBDIR)/make/defs.mk
|
||||
include $(JWBDIR)/make/py-defs.mk
|
||||
#include $(JWBDIR)/make/scripts-targets.mk
|
||||
#include $(JWBDIR)/make/rules.mk
|
||||
|
||||
EXE ?= $(firstword $(wildcard main.py runme.py test.py *.py))
|
||||
EXE_ARGS ?=
|
||||
|
||||
all:
|
||||
install:
|
||||
clean:
|
||||
distclean:
|
||||
test:
|
||||
|
||||
run:
|
||||
$(PYTHON) $(EXE) $(EXE_ARGS)
|
||||
|
||||
run.sh:
|
||||
echo -e "#!/bin/bash\n\nexport PYTHONPATH=$(PYTHONPATH)\nset -x\nexec $(PYTHON) $(EXE)" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
clean-run-sh:
|
||||
rm -f run.sh
|
||||
clean: clean-run-sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue