mirror of
https://github.com/kanaka/mal.git
synced 2024-09-21 02:27:10 +03:00
c9de2e82ed
- tests/docker/Dockerfile: specifies full docker image containing all tools/languages (except matlab). - tests/docker-build.sh: build above image. - tests/docker-run.sh: launch above image. Example: ./tests/docker-run.sh make test^js^step2 - Various fixes across multiple languages: - Unicode fixes for bash and R on Ubuntu Utopic - readline history fixes for when ~/.mal-history is not available or readable/writable. No fatal errors. - fixes to work with perl 5.20 (and still perl 5.18)
16 lines
690 B
Makefile
16 lines
690 B
Makefile
#
|
|
# mal (Make Lisp) shell readline wrapper
|
|
#
|
|
|
|
ifndef __mal_readline_included
|
|
__mal_readline_included := true
|
|
|
|
# Call bash read/readline. Since each call is in a separate shell
|
|
# instance we need to restore and save after each call in order to
|
|
# have readline history.
|
|
READLINE_EOF :=
|
|
READLINE_HISTORY_FILE := $${HOME}/.mal-history
|
|
READLINE = $(eval __readline_temp := $(shell history -r $(READLINE_HISTORY_FILE); read -u 0 -r -e -p $(if $(1),$(1),"user> ") line && history -s -- "$${line}" && echo "$${line}" || echo "__||EOF||__"; history -a $(READLINE_HISTORY_FILE) 2>/dev/null || true))$(if $(filter __||EOF||__,$(__readline_temp)),$(eval READLINE_EOF := yes),$(__readline_temp))
|
|
|
|
endif
|